Message385142
some more observations, which might be helpful in tracking it down:
x$ is much faster than ^x
A$ is as slow as ^x
$ python3 -m timeit -s "a = 'A'*100000000" "import re" "re.search('x$', a)"
10 loops, best of 5: 32.9 msec per loop
$ python3 -m timeit -s "a = 'A'*100000000" "import re" "re.search('A$', a)"
1 loop, best of 5: 802 msec per loop |
|
Date |
User |
Action |
Args |
2021-01-16 15:44:43 | 2d4d | set | recipients:
+ 2d4d, steven.daprano, serhiy.storchaka |
2021-01-16 15:44:43 | 2d4d | set | messageid: <1610811883.18.0.85533035807.issue42885@roundup.psfhosted.org> |
2021-01-16 15:44:43 | 2d4d | link | issue42885 messages |
2021-01-16 15:44:43 | 2d4d | create | |
|