I understand the 8k limit for scripts, but that’s not what I’m referring to. I’m not sending scripts via Druid, but rather sending code directly via serial. In my experience, if you send it too much at once it definitely chokes. I hadn’t tested it extensively to figure out when it chokes, I just had been conservatively chopping commands up to avoid it. For example, if I’m sending a full script I just send it a line at a time, spaced out by 2ms, which seems to prevent problems (and in this case, of course, surrounded by ^^startscript and ^^writescript/executescript’).
However, since this introduces latency, I’m hoping to figure out what the hard limit is for times when I’m sending commands in a context that might be more sensitive to latency so I can most efficiently group code. Further testing seems to suggest it’s not number of lines, but rather just number of characters. My testings finds a limit of approximately 380 characters. Send it more than that at once and Crow becomes unresponsive and needs a hard reboot.
(I hesitate to talk too much about work in progress since these things have a way of dragging on longer than I would hope, but some background might be helpful here. I’m working on a library that allows you to communicate with Crow via Node.js. It’s conceptually similar to the Max object library, but for a web browser.)