A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-July/036830.html below:

[Python-Dev] 2.3 startup speed?

[Python-Dev] 2.3 startup speed?Jeremy Hylton jeremy@zope.com
11 Jul 2003 10:37:32 -0400
I've got a plan, which I'll implement today unless someone can find a
hole in it.  The warnings module stores 5-tuples of filter information,
including two compiled regular expressions.  There are two filters
installed by default, which is why we load re during startup.

The two default filters use the regular expression "".  So we're getting
absolutely no benefit from those regular expressions.   I propose to
modify the two regex slots in the filter tuple to also store None, where
None means matching anything.

If we make that change, then we can install the default filters without
importing re.  A quick test of this change improved startup time by 20%.

Unfortunately, even with a 20% boost, it still takes twice as long to do
python -c "pass".

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