Hacker News new | ask | show | jobs
by chombier 300 days ago
my tl;dr: after reading the article:

- two 64-bits words representation

- fixed, 32 bits length

- short strings (<12 bytes) are stored in-place

- long strings store a 4 byte prefix in-place + pointer to the rest

- two bits are used as flags in the pointer to further optimize some use-cases

1 comments

Seems like they missed an opportunity to have a 8 byte version for strings that fit in the 4 byte prefix.