bpo-23691: Protect the re.finditer() iterator from re-entering https://github.com/python/cpython/commit/08eb754d8 2022-03-21 before: regex_compile: 110 ms +- 1 ms regex_dna: 149 ms +- 1 ms regex_effbot: 2.23 ms +- 0.03 ms regex_v8: 16.5 ms +- 0.1 ms my_re_benchmark: 13.0 sec +- 0.0 sec after: regex_compile: 109 ms +- 1 ms regex_dna: 149 ms +- 2 ms regex_effbot: 2.22 ms +- 0.01 ms regex_v8: 16.5 ms +- 0.1 ms my_re_benchmark: 13.0 sec +- 0.0 sec bpo-433030: Add support of atomic grouping in regular expressions https://github.com/python/cpython/commit/345b390ed 2022-03-22 before: regex_compile: 110 ms +- 1 ms regex_dna: 149 ms +- 1 ms regex_effbot: 2.22 ms +- 0.02 ms regex_v8: 17.2 ms +- 0.1 ms my_re_benchmark: 13.0 sec +- 0.0 sec after: regex_compile: 109 ms +- 1 ms regex_dna: 149 ms +- 1 ms regex_effbot: 2.25 ms +- 0.03 ms regex_v8: 17.2 ms +- 0.1 ms my_re_benchmark: 13.1 sec +- 0.0 sec bpo-42885: Optimize search for regular expressions starting with "\A" or "^" https://github.com/python/cpython/commit/492d4109f 2022-03-22 before: regex_compile: 109 ms +- 1 ms regex_dna: 148 ms +- 1 ms regex_effbot: 2.25 ms +- 0.02 ms regex_v8: 17.7 ms +- 0.1 ms my_re_benchmark: 13.0 sec +- 0.0 sec after: regex_compile: 109 ms +- 1 ms regex_dna: 146 ms +- 1 ms regex_effbot: 2.21 ms +- 0.02 ms regex_v8: 16.5 ms +- 0.1 ms my_re_benchmark: 12.1 sec +- 0.0 sec 👍 bpo-35859: Fix a few long-standing bugs in re engine https://github.com/python/cpython/commit/356997ccc 2022-03-29 before: regex_compile: 110 ms +- 1 ms regex_dna: 148 ms +- 1 ms regex_effbot: 2.20 ms +- 0.02 ms regex_v8: 16.9 ms +- 0.2 ms my_re_benchmark: 12.1 sec +- 0.0 sec after: regex_compile: 109 ms +- 1 ms regex_dna: 144 ms +- 1 ms regex_effbot: 2.18 ms +- 0.02 ms regex_v8: 16.8 ms +- 0.1 ms my_re_benchmark: 12.0 sec +- 0.0 sec bpo-23689: re module, fix memory leak when a match is terminated by a signal or memory allocation failure https://github.com/python/cpython/commit/6e3eee5c1 2022-04-04 before: regex_compile: 109 ms +- 1 ms regex_dna: 143 ms +- 1 ms regex_effbot: 2.18 ms +- 0.04 ms regex_v8: 16.4 ms +- 0.3 ms my_re_benchmark: 12.2 sec +- 0.0 sec after: regex_compile: 111 ms +- 1 ms regex_dna: 143 ms +- 1 ms regex_effbot: 1.94 ms +- 0.02 ms regex_v8: 16.4 ms +- 0.1 ms my_re_benchmark: 11.7 sec +- 0.0 sec 👍 bpo-47152: Move sources of the _sre module into a subdirectory https://github.com/python/cpython/commit/1578f06c1 2022-04-04 before: regex_compile: 111 ms +- 2 ms regex_dna: 146 ms +- 1 ms regex_effbot: 1.99 ms +- 0.03 ms regex_v8: 16.9 ms +- 0.1 ms my_re_benchmark: 11.8 sec +- 0.0 sec after: regex_compile: 111 ms +- 1 ms regex_dna: 146 ms +- 1 ms regex_effbot: 1.98 ms +- 0.01 ms regex_v8: 16.9 ms +- 0.2 ms my_re_benchmark: 11.8 sec +- 0.0 sec bpo-47211: Remove function re.template() and flag re.TEMPLATE https://github.com/python/cpython/commit/b09184bf0 2022-04-07 before: regex_compile: 110 ms +- 1 ms regex_dna: 143 ms +- 1 ms regex_effbot: 2.00 ms +- 0.02 ms regex_v8: 16.9 ms +- 0.2 ms my_re_benchmark: 11.8 sec +- 0.0 sec after: regex_compile: 110 ms +- 1 ms regex_dna: 143 ms +- 1 ms regex_effbot: 1.98 ms +- 0.01 ms regex_v8: 16.9 ms +- 0.1 ms my_re_benchmark: 11.8 sec +- 0.0 sec