Reading List
JVM Compares Strings Using the pcmpestri x86 Instruction from Michael Tsai RSS feed.
JVM Compares Strings Using the pcmpestri x86 Instruction
Jackson Davis (2016, tweet, Hacker News): String.compareTo is one of a few methods that is important enough to also get a special hand-rolled assembly version.[…]Introduced in SSE4.2, pcmpestri is a member of the pcmpxstrx family of vectorized string comparison instructions. With a control byte to specify options for their complex functionality, they are complicated enough […]