[issue22510] Faster bypass re cache when DEBUG is passed

2014-09-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Antoine for your review. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue22510] Faster bypass re cache when DEBUG is passed

2014-09-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 565096a32ce4 by Serhiy Storchaka in branch 'default': Issue #22510: Get rid of little overhead of testing re.DEBUG flag. https://hg.python.org/cpython/rev/565096a32ce4 -- nosy: +python-dev ___ Python trac

[issue22510] Faster bypass re cache when DEBUG is passed

2014-09-28 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Here is a patch which gets rid of small performance regression introduced by issue20426 patch. No need to check flags before cache lookup because patterns with the DEBUG flag are newer cached. $ ./python -m timeit -s "import re" -- "re.match('', '')" Befo