by layer8 · 8mo ago · 0 comments
But you also have to lock when reading the state, not just when writing/creating it. Wouldn’t that cause lock contention with sufficiently concurrent use?
Only when a nonexistent state is encountered during matching it enters the locked region.