String comparison only requires two comparisons, one to zero and one between strings. The case where the other string has a zero is covered either by inequality or the first string.
Byte-level comparison is simplified to comparison at the first diff or null.
String comparison only requires two comparisons, one to zero and one between strings. The case where the other string has a zero is covered either by inequality or the first string.
Byte-level comparison is simplified to comparison at the first diff or null.
The benchmark is about 50% faster.