You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[improve][broker] Reduce object allocation when iterate on LongPairRangeSet #18356
when iterate on LongPairRangeSet call forEach will:
convert long pair into Range object.
and then the Range object is passed to LongPairConsumer<? extends T> consumer which is PostitionImpl::new.
but for the case ManagedCursorImpl.buildIndividualDeletedMessageRanges and ConcurrentOpenLongPairRangeSet.size
we can get the answer by just perform on the raw (long, long) format. the object creation can be avoided.
Activity
[improve][broker] Reduce object allocation when iterate on `LongPairR…
lifepuzzlefun commentedon Nov 6, 2022
the memory alloction framegraph show the conclusion
ConcurrentOpenLongPairRangeSet.sizeManagedCursorImpl.buildIndividualDeletedMessageRanges