Is there a standard fast Java queue/circular-buffer structure like ArrayBlockingQueue
, backed by an array, but without any concurrency synchronisation overhead?
Asked
Active
Viewed 524 times
0

siledh
- 3,268
- 2
- 16
- 29

Piotr Müller
- 5,323
- 5
- 55
- 82
-
1BTW Disruptor is significantly faster than the built in ring buffers if you need higher performance or flexibility. – Peter Lawrey Oct 27 '13 at 20:09
-
1@PeterLawrey +1 but question in this case is about very small proof-of-concept in image manipulation (store last X pixels while iterating) and I just wanted to save some time on cyclic array implementation – Piotr Müller Oct 27 '13 at 21:29
2 Answers
4
Yes, there is, and it's called ArrayDeque

siledh
- 3,268
- 2
- 16
- 29
-
-
+1 Sorry, my mistake. It is not thread safe and isn't slowed down by this. – Peter Lawrey Oct 27 '13 at 20:12