3 ms·
Hit a performance cliff and rewrote a simple divide-and-conquer multithreaded application into a two-thread solution using hand-rolled map and list structures u
by lowbloodsugar 7y ago
Hit a performance cliff and rewrote a simple divide-and-conquer multithreaded application into a two-thread solution using hand-rolled map and list structures using optimistic concurrency with atomics and paying attention to dining philosophers. Didn't work first time, funnily enough.
For about a day I was terrified that it would never work. Then I found my mistakes (two).
Except in emergencies like this, my time is much better spent writing "inefficient" yet easy to develop code that everyone can understand.