Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Show me your strcpy

Name: Anonymous 2010-05-13 20:16

Here is my string copy function: http://pastebin.com/f7gBfsDY

<Nola> it took agner fog 3 years to write a strcpy
<Nola> why are you guys all lamers
<Nola> would you write some lame ass thing that loops and copies Chars
<Nola> that version is gonna be 10x faster than your C loop


Three years, motherfuckers.  Have you optimized your hand-coded assembly strcpy() today?

Name: Anonymous 2010-05-13 23:39

>>6
It depends on his implementation. I can imagine such a thing being actually slower for the first write, but I won't say anything until I see the implementation. Why would strcpy even use copy-on-write on a string-to-string bases. Copy-on-write is used on a segment/memory area basis.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List