[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-3000
Subject:    [Python-3000] Import system questions to be considered for Py3k
From:       rasky () develer ! com (Giovanni Bajo)
Date:       2006-07-18 20:45:01
Message-ID: 067701c6aaab$0a7fe040$d503030a () trilan
[Download RAW message or body]

Nick Coghlan wrote:

> Rationalise *.pkg and *.pth files
> ---------------------------------
> [...]
>
> Use an interpreter configuration file?
> --------------------------------------

When dealing with these issues, please consider also startup time. Python is
already "pretty slow" at startup, and I hope Py3k doesn't get any worse (it
should get much better, if anything). I'm sure you all can find out a way to
rationalite these startup import stuff so that they are faster. I'm afraid I
don't have any constructive suggestion since I'm not knowledgable enough.

$ strace python -c "print ''" 2>&1 | wc -l
855
$ strace perl -e "print ''" 2>&1 | wc -l
327

Stuff like:

stat64("/usr/lib/python24.zip/posixpath", 0xbfd8f934) = -1 ENOENT (No such
file or directory)
open("/usr/lib/python24.zip/posixpath.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT
(No such file or directory)
open("/usr/lib/python24.zip/posixpathmodule.so", O_RDONLY|O_LARGEFILE) = -1
ENOENT (No such file or directory)
open("/usr/lib/python24.zip/posixpath.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT
(No such file or directory)
open("/usr/lib/python24.zip/posixpath.pyc", O_RDONLY|O_LARGEFILE) = -1
ENOENT (No such file or directory)

is at least questionable, given that /usr/lib/python24.zip does not even
exist.
-- 
Giovanni Bajo


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic