webdash icon indicating copy to clipboard operation
webdash copied to clipboard

Slow update time when many requests are sent.

Open ibdafna opened this issue 4 years ago • 1 comments

Each time a request is sent to Flask, WebDash queues a callback function which gets called whenever the next response is received from the back-end (this is synchronous by nature). Whenever many requests are sent at any given time (can be done by hovering over many data points in a short period of time in the cross_filter_app application), WebDash slows down considerably before processing and displaying the last response. We should investigate why this is happening. I suspect it could be related to the overly simple queue "implementation" (in quotation marks because it's a simple array) we're using:

https://github.com/ibdafna/webdash/blob/985798820bd65fcc776de9a23e768d59ef279d40/src/worker-loader.ts#L10-L22

ibdafna avatar May 12 '21 02:05 ibdafna

@ivanov Any ideas on that one? Do you think it could be the excessive pushing/shifting operations on the queue? Could potentially use a linked list here

ibdafna avatar Jul 29 '21 23:07 ibdafna