[issue36063] replace PyTuple_SetItem() with PyTuple_SET_ITEM() in long_divmod()

2019-02-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36063] replace PyTuple_SetItem() with PyTuple_SET_ITEM() in long_divmod()

2019-02-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset ea6207d593832fe50dbca39e94c138abbd5d266d by Serhiy Storchaka (Sergey Fedoseev) in branch 'master': bpo-36063: Minor performance tweak in long_divmod(). (GH-11915)

[issue36063] replace PyTuple_SetItem() with PyTuple_SET_ITEM() in long_divmod()

2019-02-21 Thread Sergey Fedoseev
Change by Sergey Fedoseev : -- keywords: +patch pull_requests: +11998 stage: -> patch review ___ Python tracker ___ ___

[issue36063] replace PyTuple_SetItem() with PyTuple_SET_ITEM() in long_divmod()

2019-02-21 Thread Sergey Fedoseev
New submission from Sergey Fedoseev : 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: .