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 rasterization 
rendering, used in other prj with success eg 
https://github.com/HdrHistogram/HdrHistogram/blob/master/src/main/java/org/HdrHistogram/SingleWriterRecorder.java#L134
   is using a `WriterReaderPhaser` to switch active histogram in order to save 
the producer threads from being blocked while flushing the previously active 
one.


-- 
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:
[email protected]


Reply via email to