Date: Fri, 3 Feb 1995 16:49:07 +1100 From: Bruce Evans <bde@zeta.org.au> To: bde@zeta.org.au, davidg@Root.COM Cc: hackers@freefall.cdrom.com Subject: Re: Optimizing CVS? Message-ID: <199502030549.QAA31188@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
> The bcmp() is implemented as assembly in support.s. Why do think it is the >slow C version? I was confused by the version in sys/libkern. Most of the functions in ibkern aren't duplicated in support.s. I think it is a good idea not to put the ones that are used a lot in libkern so that you are forced to write a special version. This may be why bcopy and bzero aren't in libkern. The version in support.s isn't very good for misaligned pointers. The best version to use depends on the data. The version in support.s is good for large well-aligned buffers, but for stat() it is used a lot on counted strings. Short strings are best handled by inline code using "rep cmpsb" on 386's and non-CISC instructions on 486's Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199502030549.QAA31188>