On Sat, Apr 24, 2010 at 1:43 AM, P.J. Eby <p...@telecommunity.com> wrote:
> At 08:38 PM 4/23/2010 +0900, David Cournapeau wrote:
>>
>>      275    0.024    0.000    0.151    0.001 posixpath.py:351(realpath)
>
> Ouch.  So, over one third of the execution time is spent translating
> symlinks?  That seems...  excessive.

Yes, before making the modification you suggested, I memoized those
calls (normalize_path), and it was already a significant win (like 25
% less time in import, but still proportional to the number of
*.egg-info). Even now it seems to be worthwhile (but only a few %
win).

David
_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to