This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author 2d4d
Recipients 2d4d, serhiy.storchaka, steven.daprano
Date 2021-01-16.15:44:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1610811883.18.0.85533035807.issue42885@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2021-01-16 15:44:432d4dsetrecipients: + 2d4d, steven.daprano, serhiy.storchaka
2021-01-16 15:44:432d4dsetmessageid: <1610811883.18.0.85533035807.issue42885@roundup.psfhosted.org>
2021-01-16 15:44:432d4dlinkissue42885 messages
2021-01-16 15:44:432d4dcreate