This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients jkloth, rhettinger, serhiy.storchaka
Date 2016-01-25.21:09:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1453756147.88.0.363599678921.issue26201@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-01-25 21:09:07rhettingersetrecipients: + rhettinger, jkloth, serhiy.storchaka
2016-01-25 21:09:07rhettingersetmessageid: <1453756147.88.0.363599678921.issue26201@psf.upfronthosting.co.za>
2016-01-25 21:09:07rhettingerlinkissue26201 messages
2016-01-25 21:09:07rhettingercreate