PyOCL / OpenCLGA

A Python Library for Genetic Algorithm on OpenCL
MIT License
119 stars 34 forks source link

Improve UI performance #46

Open john-hu opened 7 years ago

john-hu commented 7 years ago

We use main-thread to handle all messages from websocket. It would be nice to handle the data at batch. Because the message from web worker may be too fast that a redux cannot handle it with clone or immutable structure. We can aggregate some of them and process them in a batch.

kilikkuo commented 7 years ago

By setting a timeout for those tasks which send data to browser via websocket [1], it improved the UI response time. To handle those tasks in a batch would be a good next step !

[1] https://github.com/PyOCL/OpenCLGA/commit/cc121765fdec59b984811ec3fc2aad2328e2b0fc#diff-6a65a002c0884542424d32c1a57310d2R373