Message148884
| Author |
neologix |
| Recipients |
barry, eric.smith, georg.brandl, giampaolo.rodola, loewis, nadeem.vawda, neologix, pitrou, rhettinger |
| Date |
2011年12月05日.18:32:50 |
| SpamBayes Score |
3.2091316e-09 |
| Marked as misclassified |
No |
| Message-id |
<1323109971.98.0.429467954073.issue11051@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|