-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[new] [Storage efficiency] PoC: unsigned counts for small core colls
This change affects small: strings, vectors, sets, and maps so that they use *unsigned* element counts. Before: counts in [0, 127] use 1 byte After: counts in [0, 255] use 1 byte I.e. doubles the range of counts that can be stored in 1 byte. This changes saves: - 1 byte per count in [128, 255] Is this advantage worth the extra complexity? Probably no in isolation, but this is a reasonable opportunity to lay the groundwork for unsigned element counts for future types.
- Loading branch information
1 parent
0a9d670
commit 60bc4e9
Showing
1 changed file
with
72 additions
and
54 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