I’m trying to stream some live data to a dashboard. It’s something like 5 floats per second and that’s not a lot of data to be honest. But still it takes 100% CPU and blocks the eventloop completely.
I thought I’m probably doing something wrong, so I tested this example: Streaming — hvPlot 0.8.3 documentation (holoviz.org)
If I set the callback period to 200ms CPU in admin panel goes to 100% right away. This makes everything else in the dashboard completely useless.
Has someone successfully streamed data in ~5Hz to a plot without 100% CPU?
5 Hz doesn’t sound at all impressive! We’ll be looking at optimizing streaming performance in hvplot+bokeh sometime over the next year, but it’s not currently at the top of our priority list, as we have a lot of other functionality we want in place before such optimization. I suspect something can be improved about it without much work, given how slow that is, but that’s just speculation.