On Mon, 22 Dec 2008 20:59:05 +1100, Brent Roman <brent / mbari.org> wrote: > I suspect memzero would be slower than the tight loop I have zeroing the > stack now. In my experience on x86 architecture using GCC, "memset(p, 0, len)" is substantially faster than a tight loop (between 2 & 10 times faster depending whether the loop is byte-by-byte or word-by-word). This is because GCC knows to optimize "memset" inline to a single instruction (or close to it). Mike