[Python-Dev] Startup time (original) (raw)

Alex Martelli aleax@aleax.it
Tue, 6 May 2003 20:20:42 +0200


On Tuesday 06 May 2003 07:37 pm, Martin v. L�wis wrote:

Jeff Epler <jepler@unpythonic.net> writes: > Comparing 2.2 and 2.3, there are a lot of files opened in 2.3 that > aren't in 2.2.

Very interesting. Could you also try to find out the difference in terms of stat calls?

In general:

[alex@lancelot blm]$ strace -e stat64 python2.2 -S -c pass 2>&1 | wc -l 18 [alex@lancelot blm]$ strace -e stat64 python2.3 -S -c pass 2>&1 | wc -l 71 [alex@lancelot blm]$ strace -e fstat64 python2.2 -S -c pass 2>&1 | wc -l 8 [alex@lancelot blm]$ strace -e fstat64 python2.3 -S -c pass 2>&1 | wc -l 71 [alex@lancelot blm]$

Of the stat64 calls, the found-files only:

[alex@lancelot blm]$ strace -e stat64 python2.2 -S -c pass 2>&1 | grep -v ENOENT | wc -l 4 [alex@lancelot blm]$ strace -e stat64 python2.3 -S -c pass 2>&1 | grep -v ENOENT | wc -l 12

Alex