[Python-Dev] buildin vs. shared modules
andrew at gaul.org
Tue Oct 14 15:39:05 EDT 2003
On Tue, Oct 14, 2003 at 12:20:18PM -0700, Guido van Rossum wrote:
> > I don't see why it matters, though. Adding modules to pythonxy.dll does
> > not increase the memory consumption if the modules are not used.
> Can you explain why not? Doesn't the whole DLL get loaded into
The OS maps the entire DLL but only pages in the parts that are
referenced. This is the same behavior as mmapping an ordinary file
because that is how shared libraries are usually implemented (with some
magic when multiple libraries want the same virtual addresses).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 187 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-dev/attachments/20031014/203b20cf/attachment.bin
More information about the Python-Dev