ion-docs
ion-docs copied to clipboard
Do we need `compact_string`?
trafficstars
As noted in the binary encoding chapter:
- Do we need a
compact_stringencoding? It saves a byte for string lengths >16 and <128.
Personally, I'm inclined to add it.
- Strings in that length range are quite common. At scale, the byte-saving for shorter strings is meaningful.
- It improves symmetry with symbol, user's won't be surprised by its absence.
- Implementation is obvious and simple.