"Garrett D'Amore" <garr...@damore.org> wrote: > There is an assertion you've made that "strcpy" is only used to copy a > handful of bytes. While this *might* be true, I'm less convinced that > it is. It would be interesting to profile some big web servers, etc. > and see often strcpy gets called. It seesm (to me at least), that this > is an oft-called function, and its irrelevance for performance is not > (to me at least, again) immediately obvious.
While functions like memmove() usually copy a lot more bytes and thus can spend time on diciding on the best algorithm that maches the size, the alignment and the copy direction, I believe that strcpy() usually copies less than 64 bytes. Jörg -- EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin j...@cs.tu-berlin.de (uni) joerg.schill...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code