[Mono-list] suggestion: rebase DLLs might improve load times

Paolo Molaro lupus@ximian.com
Tue, 27 Aug 2002 14:58:34 +0200


On 08/27/02 a b11112 wrote:
> I noticed that all the DLLs in \install\lib have
> the same base address (0x00400000). There is
> a chance that this leads to non-negligible load
> time increases because the OS needs to relocate
> them at load time. Research results at:
> 
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndllpro/html/msdn_pagetest.asp
> 
> Simplest way to do this is by adding the
> following link option:
> 
> /BASE:0xZZ000000
> 
> where ZZ is some 256-bit hash e.g. derived from
> the DLL's name.
> 
> Mind you, I didn't actually test if this would
> make any difference in this case, but even
> though it may not, it doesn't hurt either.
> 
> Cheers
> 
> PS:
> Same issue perhaps under Linux, of course,
> but I don't know any details about that.

Since assemblies don't actually contain native code, I doubt this is an
issue, since they don't need to be relocated.

lupus

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