Issue 36063: replace PyTuple_SetItem() with PyTuple_SET_ITEM() in long_divmod() (original) (raw)
Issue36063
Created on 2019-02-21 09:41 by sir-sigurd, last changed 2022-04-11 14:59 by admin. This issue is now closed.
Pull Requests | |||
---|---|---|---|
URL | Status | Linked | Edit |
PR 11915 | merged | sir-sigurd,2019-02-21 09:42 |
Messages (2) | ||
---|---|---|
msg336194 - (view) | Author: Sergey Fedoseev (sir-sigurd) * | Date: 2019-02-21 09:41 |
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%) | ||
msg336196 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * ![]() |
Date: 2019-02-21 10:01 |
New changeset ea6207d593832fe50dbca39e94c138abbd5d266d by Serhiy Storchaka (Sergey Fedoseev) in branch 'master': bpo-36063: Minor performance tweak in long_divmod(). (GH-11915) https://github.com/python/cpython/commit/ea6207d593832fe50dbca39e94c138abbd5d266d |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:59:11 | admin | set | github: 80244 |
2019-02-21 10:01:57 | serhiy.storchaka | set | status: open -> closedresolution: fixedstage: patch review -> resolved |
2019-02-21 10:01:13 | serhiy.storchaka | set | nosy: + serhiy.storchakamessages: + |
2019-02-21 09:42:18 | sir-sigurd | set | keywords: + patchstage: patch reviewpull_requests: + <pull%5Frequest11998> |
2019-02-21 09:41:35 | sir-sigurd | create |