Skip to content
Snippets Groups Projects
Unverified Commit 75a6fadf authored by Serhiy Storchaka's avatar Serhiy Storchaka Committed by GitHub
Browse files

gh-91524: Speed up the regular expression substitution (#91525)


Functions re.sub() and re.subn() and corresponding re.Pattern methods
are now 2-3 times faster for replacement strings containing group references.

Closes #91524

Primarily authored by serhiy-storchaka Serhiy Storchaka
Minor-cleanups-by: default avatarGregory P. Smith [Google] <greg@krypto.org>
parent 176b6c57
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment