-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
After some testing I have found Wikipedia articles where 8 bytes were not enough to fit all the diacritics in one cell. So I raised it to 12 bytes, where at least 2 combining characters can fit in the worst case. This should be enough for most real-world, natural language use cases. I don't care about zalgo. 12 bytes and alignas(4) is still a sweet spot for performance where most operations (including comparison) can be carried out in registers. It also preserves sizeof(TScreenCell) == 16, although that struct is likely to become larger in the future if true color support is added. See #26.
- Loading branch information
Showing
2 changed files
with
43 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters