[Python-Dev] this is what happens if you freeze all the modules required for startup

Antoine Pitrou solipsis at pitrou.net
Tue Apr 15 18:43:03 CEST 2014


Le 14/04/2014 23:51, Brett Cannon a écrit :
> It was realized during PyCon that since we are freezing importlib we
> could now consider freezing all the modules to cut out having to stat or
> read them from disk. So for day 1 of the sprints I I decided to hack up
> a proof-of-concept to see what kind of performance gain it would get.
>
> Freezing everything except encodings.__init__, os, and _sysconfigdata,
> it speeds up startup by 11% compared to default.

That sounds like a rather small number for the amount of complication 
and opacity it adds into the build and startup process.

Regards

Antoine.




More information about the Python-Dev mailing list