On Wed, 24 Nov 2010, Hans-Christoph Steiner wrote:
I think there are advantages to having the GUI be a separate process, and it would be worth exploring other ways of havning pd and pd-gui talk. Shared memory is one idea. Plus for things like arrays, the data could be sent as binary thereby skipping the string parsing aspect.
Look at how [#see] sends hex codes instead of decimals. Also, chop off the decimals you don't need. If you send ints instead of floats, and use a 12-bit range for stating y-position, every point could fit in 3 hex chars.
I say hex instead of base64 because base64 is not built-in in Tcl, therefore it's slower to handle.
But the only way to completely bypass all parsing is to use a 2nd socket. I haven't finished making something for that.
| Mathieu Bouchard ------------------------------------- Aix-en-Provence