Re: faster strcpy()

Richard B. Johnson (root@chaos.analogic.com)
Sun, 26 Apr 1998 23:45:49 -0400 (EDT)


On Sun, 26 Apr 1998, Andrew Kieschnick wrote:

>
> 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.
>
It would be interesting to determine if it's due to a cache that isn't
a cache at all. On three machines here, all pentiums, strange is
slower.

Cheers,
Dick Johnson
***** FILE SYSTEM MODIFIED *****
Penguin : Linux version 2.1.92 on an i586 machine (66.15 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.

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