[issue41972] bytes.find consistently hangs in a particular scenario

Dennis Sweeney report at bugs.python.org
Sat Oct 17 16:25:18 EDT 2020


Dennis Sweeney <sweeney.dennis650 at gmail.com> added the comment:

I added the cutoff for strings >= 10 characters, and I converted the PR from a draft to "Ready to Review."

When running stringbench.py before and after the PR, I get these results:

    Summary:
    Unicode Before: 81.82   Bytes Before: 92.62 
    Unicode After:  64.70   Bytes after: 62.41

    Full results here:
    https://pastebin.com/raw/DChzMjhH

And on the random zipf benchmarks: 

    Summary:
    14 cases slower (median 1.16x slower, at most 1.52x slower)
    601 cases faster (median 2.15x faster, at most 21.94x faster)
    
    Full results here:
    https://pastebin.com/raw/ez6529Bp

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41972>
_______________________________________


More information about the Python-bugs-list mailing list