3 ms·
No mention of byte alignment, am I just thinking too low level for optimisation?
by zeristor 2y ago
No mention of byte alignment, am I just thinking too low level for optimisation?
- sakras 2y agoWell, the array of Umbra strings will almost certainly be aligned to 16-bytes, since each string view is a fixed 16 bytes. For the secondary buffer containing long strings, they would not have any particular alignment because they contain bytes, which are 1-byte aligned. Enforcing an alignment for each string would waste a lot of space, and also it's not clear what that alignment would be. For example, if you had a 37-byte side string, what would you align it to?