[pygtk] Re: [Tutor] pattern matching is too slow

skip at pobox.com skip at pobox.com
Fri Aug 12 22:57:37 WST 2005

    Vinay> I guess python can do the simple optimization of moving the regex
    Vinay> compilation outside the while loop.

No, it's the re module itself.  It caches regular expressions that it
compiles from strings.


More information about the pygtk mailing list