Message300217
PyList_GET_SIZE(list) is cheap (especially in comparison of _PyDict_GetItemId(), _PyDict_SetItemId() and PyList_New()), and its tiny overhead can be avoided at most once per thread's lifetime. I'm sure you can't measure the effect of this change.
If surrounding code be modified for other reasons, may be your change could be applied. But it alone just makes a code churn. |
|
Date |
User |
Action |
Args |
2017-08-13 10:36:23 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, Oren Milman |
2017-08-13 10:36:23 | serhiy.storchaka | set | messageid: <1502620583.68.0.916831984661.issue31187@psf.upfronthosting.co.za> |
2017-08-13 10:36:23 | serhiy.storchaka | link | issue31187 messages |
2017-08-13 10:36:23 | serhiy.storchaka | create | |
|