You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@activemq.apache.org by GitBox <gi...@apache.org> on 2021/05/11 15:14:40 UTC

[GitHub] [activemq-artemis] franz1981 edited a comment on pull request #3573: ARTEMIS-3292 PageSyncTimer can reduce garbage and sync while batching syncs

franz1981 edited a comment on pull request #3573:
URL: https://github.com/apache/activemq-artemis/pull/3573#issuecomment-838656005


   Would be better to use a batching strategy that won't cause tick to copy (an unbounded number of) N pending syncs ie O(N) cost, but just a O(1) cost using a "double buffering" mechanism a-la video game computer graphic, used in order prj eg https://github.com/HdrHistogram/HdrHistogram/blob/master/src/main/java/org/HdrHistogram/SingleWriterRecorder.java#L134
   is using a `WriterReaderPhaser` to switch active histograms in order to save the producer threads from being blocked while flushing.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org