[issue846388] Check for signals during regular expression matches

Ralf Schmitt report at bugs.python.org
Fri Nov 2 23:04:29 CET 2007

Ralf Schmitt added the comment:

hm. just noticed that calling PyErr_CheckSignals slows down regular
expression matching considerably (50%).

I'm adding another patch, which only checks every 4096th iteration for

Added file: http://bugs.python.org/file8680/patch.speedup

Tracker <report at bugs.python.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.speedup
Type: application/octet-stream
Size: 1405 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071102/8a03fae2/attachment.obj 

More information about the Python-bugs-list mailing list