Chris Nicholas @chrisnicholas.dev · May 12

One more trick—drop decimal entirely, and use base 96. Indices become single ASCII characters like !, %, ). They sort lexicographically with no custom comparator, and a base 96 character can slot between any two decimal digits. Same precision, but a fraction of the size.

2 likes 1 replies

?

Replies

Chris Nicholas · May 12

At @liveblocks.io, we provide APIs for building collaborative apps—all of this is already built into our `LiveList` primitive, which you can use directly in JavaScript and React. No worrying about servers, connections, realtime, it all works automatically!