CocoaOSC icon indicating copy to clipboard operation
CocoaOSC copied to clipboard

update to GCDAsync & ARC

Open danomatika opened this issue 9 years ago • 2 comments

The RunLoop AsyncSocket classes are now deprecated in CocoaAsyncSocket. Maybe @randomblast's fork could be the source for an upgrade? It's working for me.

https://github.com/randomblast/CocoaOSC

danomatika avatar Aug 07 '16 23:08 danomatika

Hey... yeah, I'll make a PR to merge my fork back in. Fair warning though, I only fixed the bits I care about, so it's by no means complete. There are some useful things in there though.

We actually stopped using this project a good while ago. I wrote an OSC library in C which uses libdispatch/kqueue directly for event-driven networking, and has zero-copy message parsing. I did this because our applications need to handle much more OSC traffic (~1.5mbps when I last measured) than was efficiently possible using CocoaOSC.

I've also started a pure Swift equivalent which I haven't stress-tested in production yet. The aims are the same, but obviously we're relying on the compiler being sensible much more than we do with C, in terms of avoiding copies & allocations.

If these are of interest, I could ask my boss about releasing them. No promises though, our legal department will probably have issues.

randomblast avatar Aug 10 '16 16:08 randomblast

Small & fast, sounds good! :)

danomatika avatar Aug 10 '16 16:08 danomatika