Xiang Zhang added the comment:
There seems no significant regression in performance. A microbenchmark against
nu_longlong:
./python3 -m perf timeit --duplicate=1000 --compare-to
/home/angwer/repos/cpython/python -s 'import struct; p = struct.Struct("@L")'
'p.unpack(b"d\x00\x00\x00\x00\x00\x00\x00")'
python: ..................... 156 ns +- 10 ns
python3: ..................... 157 ns +- 9 ns
Median +- std dev: [python] 156 ns +- 10 ns -> [python3] 157 ns +- 9 ns: 1.01x
slower
Not significant!
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue30224>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com