You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Faster bypass re cache when DEBUG is passed #66700
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2014-09-29.17:02:10.439>created_at=<Date2014-09-28.13:43:11.638>labels= ['expert-regex', 'type-feature', 'library']
title='Faster bypass re cache when DEBUG is passed'updated_at=<Date2014-09-29.17:02:10.438>user='https://github.com/serhiy-storchaka'
Here is a patch which gets rid of small performance regression introduced by bpo-20426 patch. No need to check flags before cache lookup because patterns with the DEBUG flag are newer cached.
Activity
serhiy-storchaka commentedon Sep 28, 2014
Here is a patch which gets rid of small performance regression introduced by bpo-20426 patch. No need to check flags before cache lookup because patterns with the DEBUG flag are newer cached.
Before patch: 9.08 usec per loop
After patch: 8 usec per loop
python-dev commentedon Sep 29, 2014
New changeset 565096a32ce4 by Serhiy Storchaka in branch 'default':
Issue bpo-22510: Get rid of little overhead of testing re.DEBUG flag.
https://hg.python.org/cpython/rev/565096a32ce4
serhiy-storchaka commentedon Sep 29, 2014
Thank you Antoine for your review.