by ismailmaj · 3y ago · 0 comments
It's also a map that supports multiple readers AND a writer.
It does this by maintaining two maps, one used by the writer and one used by the readers and atomically swap the two when useful, the cool part is that reads are wait-free but the cost is at least double memory usage and slow writes (twice the work).
edit: note this is not just a map datastructure. As far as I understand, left_right can wrap any data structure.