Raymond Hettinger added the comment:

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.

----------
assignee: serhiy.storchaka -> rhettinger
Added file: http://bugs.python.org/file41715/list_check_fastpath2.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26201>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to