Raymond Hettinger added the comment:

The easiest change would essentially involve inlining the code for 
append/appendleft and then removing unneeded steps (the state update, the 
INCREF/DECREF of item, and the TRIM() test).  

Of these, the INCREF/DECREF is likely to be a nice win because we can rotate 
without visiting all the underlying objects (each of which would likely be a 
cache-line miss).

----------

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

Reply via email to