• @Blue_Morpho
    link
    117 days ago

    It’s lower performance in the one situation of iterating on an 8bit ASCII string for programs written 30 years ago but faster in more common uses. Multibyte doesn’t matter when everything is 64 bit. A 64 bit length counter is long enough for everything but the most edgy of edge cases. You take a performance hit if you aren’t aligned.

    Can you tell where the end of this string is: “ABCDEFGH”? What about now: “ABCD\0EFGH”?

    No because unicode and binary formats means a string can contain anything.