This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Deprecate the regex_compile benchmark
Type: Stage: resolved
Components: Benchmarks Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: brett.cannon Nosy List: brett.cannon, pitrou, python-dev, serhiy.storchaka
Priority: normal Keywords:

Created on 2015-10-16 19:28 by brett.cannon, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (5)
msg253091 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2015-10-16 19:28
Turns out it relies on internal APIs that either don't exist on other interpreters (e.g., IronPython), or they change which leads to breakage of the benchmark (e.g., already changed for Python 3.2 and 3.3). Probably best to retire it rather than continuing to try and prop it up.
msg253094 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2015-10-16 20:05
That sounds reasonable to me. It's a pity there isn't an official way to compile without caching.
msg253100 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2015-10-16 21:29
The public API for cache clearing is re.purge().

> It's a pity there isn't an official way to compile without caching.

See issue17441.
msg253759 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2015-10-30 21:25
New changeset 0da7b44c2ea3 by Brett Cannon in branch 'default':
Use re.purge() to clear the re cache.
https://hg.python.org/benchmarks/rev/0da7b44c2ea3
msg253760 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2015-10-30 21:25
Thanks for the pointer about re.purge(), Serhiy!
History
Date User Action Args
2022-04-11 14:58:22adminsetgithub: 69612
2015-10-30 21:25:51brett.cannonsetstatus: open -> closed
resolution: fixed
messages: + msg253760

stage: resolved
2015-10-30 21:25:26python-devsetnosy: + python-dev
messages: + msg253759
2015-10-16 22:01:02brett.cannonsetassignee: brett.cannon
2015-10-16 21:29:58serhiy.storchakasetnosy: + serhiy.storchaka
messages: + msg253100
2015-10-16 20:05:58pitrousetmessages: + msg253094
2015-10-16 19:28:26brett.cannoncreate