bytearray

28 views
Skip to first unread message

David Jones

unread,
Oct 25, 2013, 10:37:23 AM10/25/13
to pavelzla...@gmail.com, pypng...@googlegroups.com
Pavel, In this Pull Request
https://github.com/drj11/pypng/pull/25/files you mention that
bytearray is faster than array.

Did you measure that in Cython? Or with the plain Python implementation?

And if you have timings, however quick-and-dirty, can we please see them?

Cheers,
drj

Pavel Zlatovratsky

unread,
Oct 25, 2013, 11:54:54 AM10/25/13
to pypng...@googlegroups.com, pavelzla...@gmail.com
Both
*Right now test for you, using 'raise NameError' after 'bytearray'
Using 2nd-3rd run to eliminate time for bytecode compilation
 
Cython + raise = 2.052s
Cython + bytearray = 1.425s
 
CPython + raise = 3.050s
CPython + bytearray = 2.400s
Reply all
Reply to author
Forward
0 new messages