2 ms·
Ring buffers have a strictly sequential access pattern, which prefetchers are specifically optimized for. Anybody using a "message protocol" with ring buffers,
by ncmncm 7y ago
Ring buffers have a strictly sequential access pattern, which prefetchers are specifically optimized for.
Anybody using a "message protocol" with ring buffers, or doing copies out of them, is Doing It Wrong. I routinely get 10x performance by doing away with FIFOs and buffer allocation and freeing.
Process separation means you can start and stop readers independently of any other activity.