homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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.
History
Date User Action Args
2011年12月05日 18:32:52neologixsetrecipients: + neologix, loewis, barry, georg.brandl, rhettinger, pitrou, eric.smith, giampaolo.rodola, nadeem.vawda
2011年12月05日 18:32:51neologixsetmessageid: <1323109971.98.0.429467954073.issue11051@psf.upfronthosting.co.za>
2011年12月05日 18:32:51neologixlinkissue11051 messages
2011年12月05日 18:32:51neologixcreate

AltStyle によって変換されたページ (->オリジナル) /