[issue32534] Speed-up list.insert: use memmove()

Jeethu Rao report at bugs.python.org
Wed Jan 17 10:07:24 EST 2018


Jeethu Rao <jeethu at jeethurao.com> added the comment:

> > I still think those numbers are misleading or downright bogus.  There is no existing proof that list.insert() is a critical path in those benchmarks.

> Can someone check if these bencmarks really use list.insert() in hot code? If yes, why? :-) The cost of list.insert() is known, no?

Sure! https://gist.github.com/jeethu/000a2d3ecd9033c0ef51331f062ac294

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32534>
_______________________________________


More information about the Python-bugs-list mailing list