reactive-streams-commons icon indicating copy to clipboard operation
reactive-streams-commons copied to clipboard

Add IndexedQueue contract to optimize draining paths

Open smaldini opened this issue 9 years ago • 0 comments

IndexedQueue usually work with volatile consumer indices. We could define a convention to "batch" increment this index by doing it once at the end of drain loops instead of using queue.poll() that increments index everytime.

smaldini avatar Feb 20 '16 12:02 smaldini