[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

Antoine Pitrou report at bugs.python.org
Wed Aug 12 14:16:22 CEST 2009


Antoine Pitrou <pitrou at free.fr> added the comment:

> Remember, though, that
> when run as a single instance, at least in the existing engine, the re
> compiler caches recent compiles, so repeatedly compiling an expression
> flattens the overhead in a single run to a single compile and lookup,
> where as your tests recompile at each test

They don't. The pattern is compiled only once. Please take a look at
http://docs.python.org/library/timeit.html#command-line-interface

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2636>
_______________________________________


More information about the Python-bugs-list mailing list