I've been working with Bridge and have been running up against a time consumption problem. I am currently running seven LED's, and each LED has two .get() (man vs auto, and on vs off) and a .put() (the status of the pin).
I did a little of my own research, and according to my not very scientific conclusions, each .get() call takes about 1.5-2 milliseconds, and each .put() call takes around 12-12.5 milliseconds.
My cycle time right now is around 125 milliseconds, and I want to add more pins, and more complexity within my sketch.
Any thoughts as to how I might avoid these delays?
Some of my self-prescribed solutions include:
*managing .get()s and .put()s so that I only use them when needed, and/or on a timer
*somehow fitting all my .put()'s into one string and sending it all at once in order to conserve .put instantiation. The only problem is that I've heard of Bridge not handling strings over 128 characters.
*maybe using File IO to manage my asynchronous communication???
If you're curious as to why I need this functionality, see my previous posts. I basically just need a website which can send asynchronous commands to my Yun, and can read pseudo real-time data from the Yun. So far I've been able to manage that with Bridge, but now I'm worried about time usage, especially when I'll need to start using analog inputs.
Thanks for all the help Yun community!