Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bpo-23689: re module, fix memory leak when a match is terminated by a signal or memory allocation failure#32223

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
ghost wants to merge8 commits intopython:mainfromunknown repository

Conversation

@ghost
Copy link

@ghostghost commentedApr 1, 2022
edited by ghost
Loading

@serhiy-storchaka , please review the commits one by one.

MSVC 2022 non-PGO release build, runtest_re.py. It's a bit slower.

(best of 10)Before: 0.278 secAfter:  0.283 sec

But when switching REPEAT very frequently, it has some speed up:

importpyperfsetup= ("import re;""s = 100_000_000 * 'a';""p = r'.*?(?:bb)+';""p = re.compile(p)")stmt="p.match(s)"runner=pyperf.Runner()runner.timeit("match",stmt=stmt,setup=setup)# Before: Mean +- std dev: 1.88 sec +- 0.03 sec# After:  Mean +- std dev: 1.63 sec +- 0.03 sec

https://bugs.python.org/issue23689

@serhiy-storchaka
Copy link
Member

My internet connection is very bad last days, so it will take a time for review, sorry.

@ghost
Copy link
Author

It doesn't matter.

@ghostghost closed thisApr 3, 2022
@ghost ghost deleted the repeat_array branchApril 4, 2022 06:11
@abacabadabacabaabacabadabacabamannequin mentioned this pull requestJun 15, 2022
This pull request wasclosed.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@serhiy-storchaka@the-knights-who-say-ni@bedevere-bot@wjssz

[8]ページ先頭

©2009-2025 Movatter.jp