lkml.org 
[lkml]   [1998]   [Apr]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: faster strcpy()

On Sun, 26 Apr 1998, Richard B. Johnson wrote:

> # echo Note that normal strcpy copies about twice as many strings in
> Note that normal strcpy copies about twice as many strings in
> # echo one second as does strlen + memcpy.
> one second as does strlen + memcpy.

On ppro and pII, yes - normal copies 2x as many as strange.
On pentium, K5, and K6, no - strange copies 1.3x - 1.6x as many as normal.

I used the same binary on all of them, compiled with gcc 2.7.2.3, linked
against glibc-2.0.6.

later,
Andrew Kieschnick




-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:42    [from the cache]
©2003-2011 Jasper Spaans