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

only my railgun

Name: Cudder !MhMRSATORI!fR8duoqGZdD/iE5 2013-11-29 6:12

...is the fastest string search function:

http://www.codeproject.com/Articles/250566/Fastest-strstr-like-function-in-C

The best part is that it takes advantage of free unaligned access in x86. Try doing that with your braindead RISCs!

Name: Anonymous 2013-11-30 3:12

If x86 was really CISC, it would have a single instruction to do this like the VAX's MATCHC.
http://www2.hmc.edu/www_common/OVMS073/v73/4515/4515pro_025.html#index_x_952
Notice how this doesn't specify an algorithm so it is entirely left up to the implementation and can even vary depending on the lengths of the strings.

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