"Garrett D'Amore" <[email protected]> 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:[email protected] (home) Jörg Schilling D-13353 Berlin
       [email protected]                (uni)  
       [email protected] (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to