String comparison

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

String comparison

David Anthoff

I just saw this:

 

http://jcdav.is/2016/09/01/How-the-JVM-compares-your-strings/

 

I don’t know whether that might be relevant for julia, but I certainly wasn’t aware that there are special SSE instructions for string comparison and it was a fun read.

 

Cheers,

David

 

--

David Anthoff

University of California, Berkeley

 

http://www.david-anthoff.com

 

Reply | Threaded
Open this post in threaded view
|

Re: String comparison

Steven G. Johnson
Comparisons for String in Julia call memcmp in libc, which hopefully is heavily optimized.  (I know that glibc's memcmp uses SSE instructions, for example.)