5 ms·
IIRC, LMAX Disruptor[0] uses the same concept with its ring buffer to avoid GC-related slowdown. [0]: https://github.com/LMAX-Exchange/disruptor https://github
by nemesisrobot 11y ago
IIRC, LMAX Disruptor[0] uses the same concept with its ring buffer to avoid GC-related slowdown.
[0]: https://github.com/LMAX-Exchange/disruptor https://github.com/LMAX-Exchange/disruptor
- vitalyd 11y agoWhile it does avoid GC, it's mostly a faster way to share data between threads than the builtin concurrent collections.
- nemesisrobot 11y agoYep, that's what Disruptor is for. Here's a blog post by one of the devs giving more details about the ring buffer where she specifically mentions that objects are pooled to avoid the GC http://mechanitis.blogspot.com/2011/06/dissecting-disruptor-whats-so-special.html http://mechanitis.blogspot.com/2011/06/dissecting-disruptor-...