Comment by jstimpfle

5 months ago

Where is the part about unaligned pointers?

Strings typically consist of UTF-8 bytes, and any old `char*` pair has no alignment guarantees.

  • That's true, and that's why your typical string vector code has a prelude and a postlude to do the incomplete chunks at the ends. Between the ends, it's processing larger self-aligned chunks.