It's funny. I spent 5 days thinking about how to design an efficient concurrent ...

@bal4e@tech.lgbt

It's funny. I spent 5 days thinking about how to design an efficient concurrent version of docs.rs/slotmap, as it would be an important data structure in my query system. I came up with a cursed lock-free setup involving atomic bit sets and work-stealing free lists, which I believe will be optimal for my use case, even though I'm kinda scared to implement it. I felt ... stuck ... like I had to figure this out before I could get back to the basics of my query system. But now that I have an answer I'm satisfied with, I feel perfectly content to use a simple and stupid Mutex<SlotMap>. I guess I put a lot of pressure on myself to have a final answer for every step of my work, even if I don't need to implement it immediately. Does anyone here have a similar experience?

#programming