bind(): Can't assign requested address

David Phillips electrum at gmail.com
Mon Nov 22 19:44:51 PST 2004


On Mon, 22 Nov 2004 18:28:30 -0800, Sean Chittenden <sean at chittenden.org> wrote:
> Use bzero(3) instead of memest(,0,).  bzero(3) is always going to be
> faster since most OSes provide asm optimized verions of said call.

memset() is also likely to have an asm implementation, but there might
be additional optimizations for the zero case.  However, performance
is irrelevant here, as this code is only called once at startup. 
Additionally, bzero() may not be portable to older operating systems.

-- 
David Phillips <david at acz.org>
http://david.acz.org/


More information about the memcached mailing list