how not use memmove when insert a object in the list

Fredrik Lundh fredrik at pythonware.com
Sun Apr 30 06:56:22 EDT 2006


"kyo guan" wrote:

> for (i = n; --i >= where; ) /// here, why not use memmove? it would be more speed then this loop.
>    items[i+1] = items[i];

have you benchmarked this on a wide variety of platforms, or are
you just guessing?

</F>






More information about the Python-list mailing list