Re: how not use memmove when insert a object in the list
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: how not use memmove when insert a object in the list

From: Fredrik Lundh <fredrik@pythonware.com>
Date: Sun Apr 30 2006 - 12:56:22 CEST

"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>
Received on Mon May 1 00:47:05 2006