summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorSergey Fedoseev <fedoseev.sergey@gmail.com>2018-09-11 22:47:59 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-09-11 22:47:59 (GMT)
commitec014a101a7f6243b95dfc08acfe1542b9fa5d39 (patch)
tree62668429576eae74dd178a7bd0a718482500be28 /Misc
parentd13e59c1b512069d90efe7ee9b613d3913e79c56 (diff)
downloadcpython-ec014a101a7f6243b95dfc08acfe1542b9fa5d39.zip
cpython-ec014a101a7f6243b95dfc08acfe1542b9fa5d39.tar.gz
cpython-ec014a101a7f6243b95dfc08acfe1542b9fa5d39.tar.bz2
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 -->
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2018-09-11-15-04-05.bpo-34636.capCmt.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2018-09-11-15-04-05.bpo-34636.capCmt.rst b/Misc/NEWS.d/next/Library/2018-09-11-15-04-05.bpo-34636.capCmt.rst
new file mode 100644
index 0000000..c982b0a
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2018-09-11-15-04-05.bpo-34636.capCmt.rst
@@ -0,0 +1,2 @@
+Speed up re scanning of many non-matching characters for \s \w and \d within
+bytes objects. (microoptimization)