Message258924
Jeremy, thanks for the keen eyes. Attaching a revised patch.
Serhiy, pure python code doesn't directly access any of the C-API functions touched by the patch, so timeit-style examples aren't possible. The beneficiaries of the change are external modules. I suppose we could write a small C extension just to time this but that seems like overkill.
It is a general purpose optimization technique to reduce the number of memory accesses in fine-grained functions. That technique has worked well elsewhere in the core where measurable progress was made in many small steps that were individually hard to measure. |
|
Date |
User |
Action |
Args |
2016-01-25 21:09:07 | rhettinger | set | recipients:
+ rhettinger, jkloth, serhiy.storchaka |
2016-01-25 21:09:07 | rhettinger | set | messageid: <1453756147.88.0.363599678921.issue26201@psf.upfronthosting.co.za> |
2016-01-25 21:09:07 | rhettinger | link | issue26201 messages |
2016-01-25 21:09:07 | rhettinger | create | |
|