HN Hall of Fame Weekly email

Faster CRDTs: An Adventure in Optimization

josephg.com Essays & writing Essays & articles Software engineering Candidate
Screenshot of josephg.com captured 2026-07-20
Page preview · captured 2026-07-20

Resurfaced independently across 3 calendar years, with breakout response in 2 of them.

submissions
3
submitters
3
observed span
2021–2024
peak thread · 151 comments
686 pts
latest 20+ return · 2024-08-27
326 pts

Submission timeline

2007–2026

One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.

First comments on top threads

HN comment order

About a decade ago, I implemented the Causal Tree CRDT (aka RGA, Timestamped Insertion Tree) in regular expressions using a Unicode string as a storage. Later we made a collaborative editor for Yandex based on that code. It used many of the tricks as described in the text, even the optimization where you remember the last insertion point. So I am terribly glad it all gets rediscovered. The code is on GitHub [1] There is also an article which might…

gritzko·686-point thread·

> And why 32 entries? I ran this benchmark with a bunch of different bucket sizes and 32 worked well. I have no idea why that worked out to be the best. If you were using 2-byte ints, this is likely because cache lines are 64 bytes, so 32 entries would be exactly one cache line, letting each cache line hold an entire bucket, thus reducing those expensive main memory transfers.

pjz·326-point thread·

The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.

Breakout years
2

100+ points or 50+ comments

Total points
1016

reference only — not used in Hall rules or ranking

Total comments
295

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2021-07-31Faster CRDTs: An Adventure in OptimizationFirst breakout · Best threadxnx686151
2022-12-085000x Faster CRDTs: An Adventure in Optimizationgoranmoomin40
2024-08-27Faster CRDTs (2021)Latest 20+ point returnbpierre326144