[IronPython] [python] Import Performance
Michael Foord
fuzzyman at voidspace.org.uk
Wed Dec 26 22:56:04 CET 2007
Davy Mitchell wrote:
> I was curious as to why one of my apps was taking so long to start up.
> Sure it loaded up some RSS feeds but it shouldn't take *that* long.
> Anyway turns out to be 4-5 seconds importing configobj
>
> import datetime
> print datetime.datetime.now()
> from configobj import ConfigObj
> print datetime.datetime.now()
>
> Repeated with consistent results in seconds:
> IPY2.0 4.0 (A6 and A7)
> IPY1.1 1.9
> Cpython 0.1
>
> Not a huge issue for me but for large apps, this could be quite
> significant for startup times.
>
Can you benchmark which bits of the import take how much time?
Michael
> Cheers,
> Davy
>
>
More information about the Ironpython-users
mailing list