[pypy-issue] [issue890] bytearray.find is terribly slow

Pavel tracker at bugs.pypy.org
Sat Oct 1 14:55:35 CEST 2011


New submission from Pavel <asl.pavel at gmail.com>:

[~/Python/dict] $ python2 -mtimeit -s 's = bytearray (b"0" * (1 << 20))' 's.find 
(b"t", 3, 10)'
1000000 loops, best of 3: 0.32 usec per loop
[~/Python/dict] $ python3 -mtimeit -s 's = bytearray (b"0" * (1 << 20))' 's.find 
(b"t", 3, 10)'
1000000 loops, best of 3: 0.291 usec per loop
[~/Python/dict] $ pypy -mtimeit -s 's = bytearray (b"0" * (1 << 20))' 's.find 
(b"t", 3, 10)'
1000 loops, best of 3: 1.2 msec per loop
[~/Python/dict] $

----------
messages: 3224
nosy: pypy-issue
priority: bug
status: unread
title: bytearray.find is terribly slow

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue890>
________________________________________


More information about the pypy-issue mailing list