String’s ABI and UTF-8

PCMPxSTRx is no longer faster than equivalent "simple" vector instruction sequences for straightforward comparisons (this had already been the case for a few years when that article was written, which is curious). It can be used productively (with some care) for some other operations like substring matching, but that's not as much of a heavy-hitter. There's a bunch of string stuff that will benefit from general vectorization, and which is absolutely on our roadmap to tackle, but using the PCMPxSTRx instructions specifically isn't a source of wins on the most important operations.

11 Likes