Standalone Win32 wxPython apps?

Geoff Gerrietts geoff at gerrietts.net
Sun Mar 10 18:01:48 EST 2002


Quoting Grant Edwards (grante at visi.com):
> In article <1a9n8us1629mrvei40hdkuuerc1j6p318m at 4ax.com>, Courageous wrote:
> 
> I would think that for an isolated app, .so's would slow down
> load times.  With a statically linked program all you do is a
> single memmap() call (well, ignoring a few details).  With
> .so's you've actually got to resolve all of the symbols and do
> the linking step (not required for statically linked images).
> 
> Since you've got the same number of bytes to swap in off disk,
> that should be a wash.

I can't speak for the windows world, but in the Linux world, .so's end
up saving some time because the dynamic linker doesn't actually move
things into the program's address space until needed -- it does this
on a page-by-page basis. Consequently, less start-time latency at a
slight cost when you use the feature.

My data comes from: http://www.suse.de/~bastian/Export/linking.txt

A worthwhile read, though it probably should be filed under "dark
sorcery".

--G.

-- 
Geoff Gerrietts             "Whenever people agree with me I always 
<geoff at gerrietts net>     feel I must be wrong." --Oscar Wilde




More information about the Python-list mailing list