[New-bugs-announce] [issue22510] Faster bypass re cache when DEBUG is passed

Serhiy Storchaka report at bugs.python.org
Sun Sep 28 15:43:11 CEST 2014


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('', '')"

Before patch: 9.08 usec per loop
After patch: 8 usec per loop

----------
components: Library (Lib), Regular Expressions
files: re_debug_cache_faster.patch
keywords: patch
messages: 227758
nosy: ezio.melotti, mrabarnett, pitrou, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Faster bypass re cache when DEBUG is passed
type: enhancement
versions: Python 3.5
Added file: http://bugs.python.org/file36749/re_debug_cache_faster.patch

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


More information about the New-bugs-announce mailing list