I need a LinkedBlockingQueue, but I pass the primitives to it. My data rates for adding to the queue are about 4 ms or 256 data points per second. The problem I ran into is that the data starts to linger immediately upon startup, but over time it seems that JIT makes it more efficient and ends in real time. I am trying to figure out where I need to reduce the initial delay, and one of them is the โnewโ Float object from autoboxing for each insert in the queue. Does anyone have a LinkedBlockingQueue using primitives?
Or is there something faster than LinkedBlockingQueue when you are unsure of the size and use of primitives?
source share