[Mono-devel-list] opcodes.c patch (GCCism)

Paolo Molaro lupus at ximian.com
Tue Aug 10 13:47:24 EDT 2004


On 08/10/04 Bernie Solomon wrote:
> However I am still slightly puzzled why this feature needs
> to be used here at all given that the initialization happens
> in order of enum member and those are just sequential
> anyway. Removing the use of it seems to behave
> identically to me. But things work for me now anyway.

Storing addresses in arrays or structures requires relocations
by the dynamic linker: that code avoids the relocations so it improves
startup time and it reduces the amount of writable memory used.
There are a few other places in mono where the optimization can be
applied as well, I have other similar patches.
Look at http://people.redhat.com/drepper/dsohowto.pdf for more details.

lupus

-- 
-----------------------------------------------------------------
lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better



More information about the Mono-devel-list mailing list