On Sun, Nov 15, 2009 at 6:38 AM, Karl Hammar wrote:
OSC is not a new thing - its been around for more than a decade. It is
widely known that its text-based format represents significant,
measurable overhead when the message rate is high, primarily calls to
strcmp (or any equivalent function that you want to write - one way or
another, you have to do byte-by-byte comparisons to identify the
message and its destination). OSC is a remarkably flexible protocol
that has many potential uses, but as fons noted if you increase the
message rate to the level that would be needed for some kinds of less
conventional control, and the text based format is demonstrably a
*proven performance issue*. does that mean that OSC is useless? far
from it. this is much less of an issue than the lack of any clear
semantics. but its still an issue to be aware of depending on the use
case.
> ...
actually, the "lo" in liblo stands for "lightweight OSC", and is very
specifically NOT a full implementation of the protocol. steve chose to
implement just the parts that seemed actually useful. i have not come
across anything that liblo can't handle, but its a mistake to think
that its the whole thing. it is, though, as fons notes, more expensive
than a custom designed codebase that delivers primarily preformatted
messages to a socket.
> Ok, I'll try liblo first, if that is to slow, I'll implement it
i strongly suggest that you spend time defining precisely what you
want the control protocol to be able to do before you start this kind
of experiment.
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@lists.linuxaudio.org
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user
LINUX® is a registered trademark of Linus Torvalds in the USA and other countries.
Linuxaudio.org logo copyright Thorsten Wilms © 2006.
Hosting provided by the Virginia Tech Department of Music and DISIS.