Python startup seems slow... (NT)

Duncan Booth duncan at rcp.co.uk
Fri Jan 28 09:08:29 EST 2000


jasont at wellmed.com (Jason Taylor) wrote in 
<MPG.12fa1256cc30caf0989682 at or.news.verio.net>:

>I just installed this new DLL, and it's a night-and-day difference.  
>There's almost no wait the first time, and it's as fast as Perl the 
>second and subsequent times.  By switching back to the old DLL, the wait 
>reappears.
>
>Thanks guys again for your help!!!

I find it strange that you find this long delay, but others (myself 
included) find the standard DLL loads quickly every time (possibly a bit 
slower the first time). I can think of a few possible reasons for this.

Perhaps the python DLL loads other DLLs which take time to load, and which 
are preloaded into memory on my system, but not on yours. The python 
dependencies are KERNEL32, USER32, ADVAPI32, WSOCK32, WINMM, MSVCRT, most 
of which would be loaded on any booted windows system. WSOCK32 might be 
unloaded if you do not normally have a network connection, in which case 
running up a network application before running python should reduce the 
wait.

The other possibility that occurs to me might be a conflicting DLL already 
loaded in the system at the same address. This would mean that the python 
dll would have to be relocated every time it loads, however the delayed 
loading DLL shouldn't be faster in this case unless it has a different 
relocation base.



More information about the Python-list mailing list