← Back to context Comment by jstimpfle 5 months ago Where is the part about unaligned pointers? 8 comments jstimpfle Reply simonask 5 months ago Strings typically consist of UTF-8 bytes, and any old `char*` pair has no alignment guarantees. jstimpfle 5 months ago 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. simonask 5 months ago If you're aware of that technique, why were you asking about use cases for unaligned loads? 5 replies →
simonask 5 months ago Strings typically consist of UTF-8 bytes, and any old `char*` pair has no alignment guarantees. jstimpfle 5 months ago 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. simonask 5 months ago If you're aware of that technique, why were you asking about use cases for unaligned loads? 5 replies →
jstimpfle 5 months ago 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. simonask 5 months ago If you're aware of that technique, why were you asking about use cases for unaligned loads? 5 replies →
simonask 5 months ago If you're aware of that technique, why were you asking about use cases for unaligned loads? 5 replies →
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.
If you're aware of that technique, why were you asking about use cases for unaligned loads?
5 replies →