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
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| Jan 7, 2018 | How the JVM compares strings on x86 using pcmpestri by mpweiher | 239 | 70 |
| Sep 1, 2016 | How the JVM compares strings on x86 by jcdavis | 142 | 60 |