#482·disruptor

下一个(n) 方法是否存在性能问题?

作者: chenggwang创建于 2024年8月28日更新于 2025年4月25日
标签question

在下一个next(n)方法中,我们在判断是否发生了包装时使用了`long wrapPoint = nextSequence - bufferSize; wrapPoint > cachedGatingSequence`。例如,在下图中:

内容来源: LMAX-Exchange/disruptor