[New-bugs-announce] [issue36063] replace PyTuple_SetItem() with PyTuple_SET_ITEM() in long_divmod()
Sergey Fedoseev
report at bugs.python.org
Thu Feb 21 04:41:35 EST 2019
New submission from Sergey Fedoseev <fedoseev.sergey at gmail.com>:
This change produces minor speed-up:
$ python-other -m perf timeit -s "divmod_ = divmod" "divmod_(1, 1)" --duplicate=1000 --compare-to=../cpython-master/venv/bin/python
python: ..................... 64.6 ns +- 4.8 ns
python-other: ..................... 59.4 ns +- 3.2 ns
Mean +- std dev: [python] 64.6 ns +- 4.8 ns -> [python-other] 59.4 ns +- 3.2 ns: 1.09x faster (-8%)
----------
messages: 336194
nosy: sir-sigurd
priority: normal
severity: normal
status: open
title: replace PyTuple_SetItem() with PyTuple_SET_ITEM() in long_divmod()
type: performance
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36063>
_______________________________________
More information about the New-bugs-announce
mailing list