Robert Collins wrote: > Certainly, import time is part of it: > robe...@lifeless-64:~$ python -m timeit -s 'import sys; import > bzrlib.errors' "del sys.modules['bzrlib.errors']; import bzrlib.errors" > 10 loops, best of 3: 18.7 msec per loop > > (errors.py is 3027 lines long with 347 exception classes). > > We've also looked lower - python does a lot of stat operations search > for imports and determining if the pyc is up to date; these appear to > only really matter on cold-cache imports (but they matter a lot then); > in hot-cache situations they are insignificant. > Tarek, Georg, and I talked about a way to do both multi-version and speedup of this exact problem with import in the future at pycon. I had to leave before the hackfest got started, though, so I don't know where the idea went from there. Tarek, did this idea progress any?
-Toshio
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com