Jackson Davis personal blog

How the JVM compares strings on x86 using pcmpestri

We’ve all probably seen Java’s String comparison function before. It compares strings by the first differing character, falling back to the length difference when they are identical up to the end of the shorter string:
Points
239
HN comments
130
Submissions
2
Cited by
0 commenters

Software EngineeringSystems & Performance2018

On Hacker News

SubmittedTitle on HNPointsComments
Jan 7, 2018How the JVM compares strings on x86 using pcmpestri by mpweiher23970
Sep 1, 2016How the JVM compares strings on x86 by jcdavis14260

Related posts from the same era