On 08.02.13 03:08, Ian Kelly wrote: > I think what we're seeing here is that > the time needed to look up the compiled regular expression in the > cache is a significant fraction of the time needed to actually execute > it. There is a bug issue for this. See http://bugs.python.org/issue16389 .