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-October/039847.html below:

[Python-Dev] Speeding up regular expression compilation

[Python-Dev] Speeding up regular expression compilation [Python-Dev] Speeding up regular expression compilationMartin v. Löwis martin at v.loewis.de
Thu Oct 30 17:16:48 EST 2003
Bram Moolenaar <Bram at moolenaar.net> writes:

> Is there a trick to make compiling patterns go faster?

If you compile the same regular expression at every program startup,
and want to reduce the time for that, you can cPickle the compile
expression, and restore it from the string. If that fails (because the
format of compiled expressions has failed), you should fall back to
compiling expressions, and optionally save the new version.

Regards,
Martin

More information about the Python-Dev mailing list

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