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

2008-06-23 Thread Nick Craig-Wood
Antoine Pitrou <[EMAIL PROTECTED]> wrote: > Neil Schemenauer arctrix.com> writes: > > I wonder if it would make sense to start installing the Python > > standard library as a .zip file by default. Some benefits would be > > a tidier and more compact install and slightly faster startup times. >

Re: [Python-3000] stdlib as .zip by default

2008-06-23 Thread Oleg Broytmann
On Mon, Jun 23, 2008 at 12:07:00PM +0100, Nick Craig-Wood wrote: > I imagine having the stdlib in one .zip will stop lots of seeking and > improve the first time. Instead of seeking in the filesystem you end up seeking in the zip. Why do you expect it'd be faster? Oleg. -- Oleg Broytmann

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

2008-06-23 Thread Antoine
> Antoine Pitrou <[EMAIL PROTECTED]> 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 "" > > real0m1.393s > user0m0.004s > sys

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

2008-06-23 Thread Guido van Rossum
It's not the cost of starting up an empty Python. It's the cost of loading the tons of stuff that every app uses. Trust me, zip files *do* make for much speedier app startup times. It's been tested many times. --Guido On Mon, Jun 23, 2008 at 5:23 AM, Antoine <[EMAIL PROTECTED]> wrote: >> Antoine

Re: [Python-3000] stdlib as .zip by default

2008-06-23 Thread Brett Cannon
On Mon, Jun 23, 2008 at 4:46 AM, Oleg Broytmann <[EMAIL PROTECTED]> wrote: > On Mon, Jun 23, 2008 at 12:07:00PM +0100, Nick Craig-Wood wrote: >> I imagine having the stdlib in one .zip will stop lots of seeking and >> improve the first time. > > Instead of seeking in the filesystem you end up see

Re: [Python-3000] stdlib as .zip by default

2008-06-23 Thread Oleg Broytmann
On Mon, Jun 23, 2008 at 10:04:37AM -0700, Brett Cannon wrote: > On Mon, Jun 23, 2008 at 4:46 AM, Oleg Broytmann <[EMAIL PROTECTED]> wrote: > > On Mon, Jun 23, 2008 at 12:07:00PM +0100, Nick Craig-Wood wrote: > >> I imagine having the stdlib in one .zip will stop lots of seeking and > >> improve the

Re: [Python-3000] stdlib as .zip by default

2008-06-23 Thread Terry Reedy
Oleg Broytmann wrote: Less stat calls in exchange for seeking in the zip "filesystem" plus decompression. IWBN if someone shows real numbers... Decompression time is balanced, probably more than balanced, by shorter disk reading times. In the last twenty years, cpus have speed up much

Re: [Python-3000] stdlib as .zip by default

2008-06-23 Thread Nick Craig-Wood
On Mon, Jun 23, 2008 at 09:08:12PM +0400, Oleg Broytmann wrote: > On Mon, Jun 23, 2008 at 10:04:37AM -0700, Brett Cannon wrote: > > On Mon, Jun 23, 2008 at 4:46 AM, Oleg Broytmann <[EMAIL PROTECTED]> wrote: > > > On Mon, Jun 23, 2008 at 12:07:00PM +0100, Nick Craig-Wood wrote: > > >> I imagine havi

Re: [Python-3000] stdlib as .zip by default

2008-06-23 Thread Greg Ewing
Oleg Broytmann wrote: Instead of seeking in the filesystem you end up seeking in the zip. Why do you expect it'd be faster? It might help if everything the interpeter needs during startup could be grouped together in the zip file, so that it's spread over less disk blocks. -- Greg _