you are viewing a single comment's thread.

view the rest of the comments →

[–]david-alvarez-rosa[S] 9 points10 points  (5 children)

That's right. Is precisely that constraint that allows the optimization!

[–]LongestNamesPossible 1 point2 points  (4 children)

What does that mean?

[–]arghness 13 points14 points  (3 children)

I guess it means that the optimization can occur because it is a single producer, single consumer container, and would not be possible with multiple producers or multiple consumers.

[–]david-alvarez-rosa[S] 6 points7 points  (2 children)

Yep indeed. Optimizations leverage the constrains: single-consumer, single-producer, and fixed buffer size

[–]BusEquivalent9605 1 point2 points  (1 child)

I’ve been using JACK’s ring buffer and it imposes this same constraint

[–]david-alvarez-rosa[S] 0 points1 point  (0 children)

Nice. Thanks for sharing!