[Distutils] namespace packages
David Cournapeau
cournape at gmail.com
Sat Apr 24 07:48:20 CEST 2010
On Sat, Apr 24, 2010 at 1:43 AM, P.J. Eby <pje at 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
More information about the Distutils-SIG
mailing list