]> granicus.if.org Git - python/commit
Optimize PyList_AsTuple(). Improve cache performance by doing the
authorRaymond Hettinger <python@rcn.com>
Sat, 15 Dec 2007 00:07:25 +0000 (00:07 +0000)
committerRaymond Hettinger <python@rcn.com>
Sat, 15 Dec 2007 00:07:25 +0000 (00:07 +0000)
commit6c87af5d876dca978199240c258eaaaf2d0040e9
treeecaabed843f651f11db7c22bf5001de8384801b6
parentc67a15d86552245f1a55b58e319ffda345196854
Optimize PyList_AsTuple(). Improve cache performance by doing the
pointer copy and object increment in one pass.  For small lists,
save the overhead of the call to memcpy() -- this comes up in
calls like f(*listcomp).
Objects/listobject.c