[pypy-issue] [issue1695] complexity of bytearray operations
Johannes Baiter
tracker at bugs.pypy.org
Thu Mar 13 23:42:56 CET 2014
Johannes Baiter <johannes.baiter at gmail.com> added the comment:
I got bitten by this when running my jpegtran bindings under PyPy.
To extract EXIF data from JPEG images, I'm using indexed access on bytearrays a lot.
To illustrate the issue, the following (using IPython):
[1] import jpegtran
[2] %timeit -n10 -r5 jpegtran.JPEGImage('someimage.jpg').exif_thumbnail.as_blob()
gives 49.1ms as a 'best case' on CPython while it's ~2570ms on PyPy.
The source for the module can be found here:
https://github.com/jbaiter/jpegtran-cffi/blob/master/jpegtran/lib.py#L150
I also attached profiling data for PyPy.
----------
nosy: +jbaiter
status: unread -> chatting
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1695>
________________________________________
More information about the pypy-issue
mailing list