[Python-Dev] list.append optimization Was: collections module (original) (raw)

Raymond Hettinger python at rcn.com
Tue Jan 13 12:53:27 EST 2004


So pretty consistent here, apart from the glitch on the first "after" run, and about an 80% speedup.

Yawn . If someone wants to run with this, be my guest. There may be other holes (c.f. PyListNew above), and it could sure use a comment about why it's correct (if it in fact is <0.9 wink>).

I'll look at the this this weekend.

The improvement is awesome. Hope it has doesn't muck-up anything else.

Raymond Hettinger

################################################################# ################################################################# ################################################################# ##### ##### ##### ################################################################# ################################################################# #################################################################



More information about the Python-Dev mailing list