[Python-Dev] Mercurial sluggishness (was: this is what happens if you freeze all the modules required for startup)
Antoine Pitrou
solipsis at pitrou.net
Tue Apr 15 18:46:16 CEST 2014
Le 15/04/2014 17:34, Skip Montanaro a écrit :
> This
> suggests to me that Mercurial's import slowness is mostly in its own
> code (I counted 104 Python modules and six shared objects in its
> mercurial package, which isn't going to be affected (much?) by
> freezing the Python standard modules.
Skip is right. When trying to find out why the hgprompt extension (which
is a rather nifty extension adding color-coded repository information
into your bash prompt) made the shell so much slower, it turned out that
most of the execution time comes from importing *Mercurial* modules, not
stdlib modules.
Regards
Antoine.
More information about the Python-Dev
mailing list