jfabry / LiveRobotProgramming

Live Robot Programming
http://pleiad.cl/lrp
8 stars 3 forks source link

Send code updates to the interpreter in a separate thread #114

Closed jfabry closed 8 years ago

jfabry commented 8 years ago

Sending new code to the interpreter should be done in a background thread so that the text editor remains more responsive.

Have a queue and enqueue code updates. A separate thread dequeues and sends to the interpreter.

Optimization: the queue is fake, actually only max one element is in the queue: the last update that was sent. All intermediate updates will be superseded by the last update, so we can trash them.

jfabry commented 8 years ago

Fixed in LiveRobotics-UI-johanfabry.134 The UI is more responsive now and everything seems to work well.