RE Module Performance
88888 Dihedral
dihedral88888 at gmail.com
Thu Jul 18 16:17:08 EDT 2013
Devyn Collier Johnson於 2013年7月16日星期二UTC+8下午6時30分33秒寫道:
> Am 07/12/2013 07:16 PM, schrieb MRAB:
>
> > On 12/07/2013 23:16, Tim Delaney wrote:
>
> >> On 13 July 2013 03:58, Devyn Collier Johnson <devyncjohnson at gmail.com
>
> >> <mailto:devyncjohnson at gmail.com>> wrote:
>
> >>
>
> >>
>
> >> Thanks for the thorough response. I learned a lot. You should write
>
> >> articles on Python.
>
> >> I plan to spend some time optimizing the re.py module for Unix
>
> >> systems. I would love to amp up my programs that use that module.
>
> >>
>
> >>
>
> >> If you are finding that regular expressions are taking too much time,
>
> >> have a look at the https://pypi.python.org/pypi/re2/ and
>
> >> https://pypi.python.org/pypi/regex/2013-06-26 modules to see if they
>
> >> already give you enough of a speedup.
>
> >>
>
> > FYI, you're better off going to http://pypi.python.org/pypi/regex
>
> > because that will take you to the latest version.
>
> Thank you everyone for the suggestions. I have not tried them yet.
>
>
>
> Devyn Collier Johnson
I was thinking to decompose RE patterns into string matching
formats of various strings in some formats.
Anyway that involves some compiler techniques.
More information about the Python-list
mailing list