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.
>
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
> 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
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
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
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
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
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
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
_