On Tue, 23 Nov 2004 05:28:10 -0000, Aaron Stone
<[EMAIL PROTECTED]> wrote:
> ""Wolfram A. Kraushaar"" <[EMAIL PROTECTED]> said:
> 
> >> rather silly to have them in the code.  Lastly, memset(,0,) is not as
> >> fast as bzero(3).  I've moved several calls from memset(,0,) to
> >> bzero(3) and would suggest the rest of the tree be swept for similar
> >> changes.
> >
> > Hm - bzero is marked deprecated in the Linux Prorammer's Manual and
> > memset should be used instead on Linux...
> > So your suggestion seems to be valid for BSD only.
> 
> Is bzero really faster? I can't imagine it as being any more than, at
> most, a "useless micro-optimization."

As we're allocating and NULling anyway, we might be better off using
calloc(3), which does does things in one shot, and might optimize some
stuff on the fly (depending on the OS)

Ilja

Reply via email to