osc-clj icon indicating copy to clipboard operation
osc-clj copied to clipboard

Slow OSC Server

Open mw10013 opened this issue 14 years ago • 2 comments

changed PriorityBlockingQueue to LinkedBlockingQueue so that multiple messages with timestamp 0 get sent out in FIFO order

mw10013 avatar Jul 17 '11 04:07 mw10013

Hmmm, the problem with this is that it doesn't sort by timestamp anymore, which we use a lot with Overtone. Do you actually see a performance difference with this change?

rosejn avatar Jul 17 '11 09:07 rosejn

I'm sending a fair amount of events to a slow osc server. The events are processed out of real time and just need to be in order.

In the previous version, I discovered that events would sometimes get sent in an indeterminate order.

It seemed that all my events were coming in with a timestamp of 0 and the priority queue does not maintain order for timestamps of the same value.

It's been a while since I looked at this so my details may be off. Are you creating osc events with explicit timestamps? I'm letting the machinery create the timestamp implicitly and I currently don't have performance constraints, only order is important

On Jul 17, 2011, at 5:37 AM, [email protected] wrote:

Hmmm, the problem with this is that it doesn't sort by timestamp anymore, which we use a lot with Overtone. Do you actually see a performance difference with this change?

Reply to this email directly or view it on GitHub: https://github.com/rosejn/osc-clj/pull/4#issuecomment-1589604

mw10013 avatar Jul 17 '11 14:07 mw10013