Message253054
Importing a module looks slow to me. Importing a module which is a an *empty* .py file takes ~160 us.
$ python3 -I -m timeit -s "open('slow.py', 'wb').close(); import sys; import slow" "del sys.modules['slow']; import slow"
10000 loops, best of 3: 156 usec per loop
The difference betwen Python 3.4 and 3.5 is that enum.py imports indirectly more modules. The following two imports were added to types.py in Python 3.5:
import functools as _functools
import collections.abc as _collections_abc |
|
Date |
User |
Action |
Args |
2015-10-15 16:15:30 | vstinner | set | recipients:
+ vstinner, barry, brett.cannon, terry.reedy, ncoghlan, eric.snow, serhiy.storchaka |
2015-10-15 16:15:30 | vstinner | set | messageid: <1444925730.55.0.462313688522.issue25159@psf.upfronthosting.co.za> |
2015-10-15 16:15:30 | vstinner | link | issue25159 messages |
2015-10-15 16:15:30 | vstinner | create | |
|