[Python-3000] stdlib as .zip by default, pydoc to view source?

Antoine solipsis at pitrou.net
Mon Jun 23 14:23:37 CEST 2008


> Antoine Pitrou <solipsis at pitrou.net> wrote:
>
> That is for a warm cache.
>
> If you drop your caches first (like this under linux) you get quite a
> different story...
>
> $ sudo sh -c 'sync; echo 3 > /proc/sys/vm/drop_caches'
> $ time python -c ""
>
> real    0m1.393s
> user    0m0.004s
> sys     0m0.004s

But still that's only one second for the worst case where nothing is in
the filesystem cache (I suppose it would be higher under Windows). You
won't find lots of programs which launch in less than one second when none
of their dependent files are in FS cache.

> I imagine having the stdlib in one .zip will stop lots of seeking and
> improve the first time.

Someone would have to test it to know the extent of the improvement.




More information about the Python-3000 mailing list