4 ms·
Can confirm -- writing data to memory is incredibly fast. It's faster to use a lock-free queue and use CAS to insert data though: http://psy-lob-saw.blogspot.
by wsargent 6y ago
Can confirm -- writing data to memory is incredibly fast. It's faster to use a lock-free queue and use CAS to insert data though:
http://psy-lob-saw.blogspot.com/2016/12/linked-array-queues-part-2-spsc.html http://psy-lob-saw.blogspot.com/2016/12/linked-array-queues-...
I've benchmarked code myself, and the flamegraphs will barely show the SpscArrayQueue in the profile.