Johannes Baiter <[email protected]> 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 <[email protected]>
<https://bugs.pypy.org/issue1695>
________________________________________
_______________________________________________
pypy-issue mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to