Message148884
Here's a trivial patch reducing the number of calls to open.
before:
"""
$ strace -c -e open ./python -c ""
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
100.00 0.000049 0 392 306 open
------ ----------- ----------- --------- --------- ----------------
100.00 0.000049 392 306 total
"""
after:
"""
$ strace -c -e open ./python -c ""
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
100.00 0.000024 0 86 open
------ ----------- ----------- --------- --------- ----------------
100.00 0.000024 86 total
"""
As for the flury of tentative locations, I don't feel like modifying this since I'm not familiar enough with the import machinery. |
|
Date |
User |
Action |
Args |
2011-12-05 18:32:52 | neologix | set | recipients:
+ neologix, loewis, barry, georg.brandl, rhettinger, pitrou, eric.smith, giampaolo.rodola, nadeem.vawda |
2011-12-05 18:32:51 | neologix | set | messageid: <1323109971.98.0.429467954073.issue11051@psf.upfronthosting.co.za> |
2011-12-05 18:32:51 | neologix | link | issue11051 messages |
2011-12-05 18:32:51 | neologix | create | |
|