New submission from Sergey Fedoseev <fedoseev.ser...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue36063>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to