A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2003-May/035617.html below:

[Python-Dev] Startup time

[Python-Dev] Startup timeJeremy Hylton jeremy@zope.com
14 May 2003 13:45:33 -0400
On Wed, 2003-05-14 at 13:35, Skip Montanaro wrote:
>     Jeremy> I don't know if this thread came to any conclusion.  
> 
> I don't think so.  I think it bogged down about the time I suggested that
> executing import from within a function might slow things down.
> 
>     Jeremy> The use of re in the warnings module seems the primary culprit,
>     Jeremy> since it pulls in re, sre and friends, string, and strop.
> 
> I just peeked at warnings.py.  None of the uses of re.* in there seem like
> they'd be in time-critical functions.  The straightforward change (migrate
> "import re" into the functions which use the module) worked for me, so I
> went ahead and checked it in.

Guido and I looked at that briefly.  It doesn't make any difference does
it?  The functions that use re are called when the module is imported.

Jeremy





RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4