]> granicus.if.org Git - python/commit
bpo-34636: Use fast path for more chars in SRE category macros. (GH-9170)
authorSergey Fedoseev <fedoseev.sergey@gmail.com>
Tue, 11 Sep 2018 22:47:59 +0000 (03:47 +0500)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 11 Sep 2018 22:47:59 +0000 (15:47 -0700)
commitec014a101a7f6243b95dfc08acfe1542b9fa5d39
tree62668429576eae74dd178a7bd0a718482500be28
parentd13e59c1b512069d90efe7ee9b613d3913e79c56
bpo-34636: Use fast path for more chars in SRE category macros. (GH-9170)

When handling \s, \d, or \w (and their inverse) escapes in bytes regexes this a small but measurable performance improvement.

<!-- issue-number: [bpo-34636](https://www.bugs.python.org/issue34636) -->
https://bugs.python.org/issue34636
<!-- /issue-number -->
Misc/NEWS.d/next/Library/2018-09-11-15-04-05.bpo-34636.capCmt.rst [new file with mode: 0644]
Modules/_sre.c