Improving interpreter startup speed

Pedro Borges pedro.dhb at gmail.com
Sun Oct 26 09:19:46 EDT 2008


The scripts i need to run but be executed with no apparent delay  
specially when the text transforms are simple.


On Oct 26, 2008, at 11:13 AM, James Mills wrote:

> On Sun, Oct 26, 2008 at 11:23 AM, BJörn Lindqvist  
> <bjourne at gmail.com> wrote:
>> How are you getting those numbers? 330 μs is still pretty fast,  
>> isn't
>> it? :) Most disks have a seek time of 10-20 ms so it seem implausible
>> to me that Ruby would be able to cold start in 47 ms.
>
> $ time python -c "pass"
>
> real    0m0.051s
> user    0m0.036s
> sys     0m0.008s
>
> $ time python3.0 -c "pass"
>
> real    0m0.063s
> user    0m0.048s
> sys     0m0.004s
>
> And yes I agree. the CPython interpreter startup times is
> a stupid thing to be worrying about, especially since that
> is never the bottleneck.
>
> Python loads plenty fast enough!
>
> --JamesMills
>
> -- 
> --
> -- "Problems are solved by method"




More information about the Python-list mailing list