Dennis Sweeney <sweeney.dennis...@gmail.com> added the comment:
The most recent batch of commits added a jump table. Between master and PR 22679 now, there are 151 cases slower than master and 463 that faster than master. The slower cases are at most twice as slow, but the faster cases are often 10-20x faster. I could add a cutoff to use a simpler algorithm instead, for needles of length less than ~10, but I wanted to get the "purer" data out before making that change. The benchmark data is here: https://pastebin.com/raw/bzQ4xQgM ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41972> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com