You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a line chart with a few series and animations turned off which is periodically updated (in my example every 100ms) using setOption function by supplying the entire history of data for the visible period of time:
Recently I created a demo app to check whether echarts would fit my team's use case. In our application we have multiple history graphs with varying time intervals which are first pre-filled with historical data and then updated with varying frequency, sometimes as often as every 100ms. I do it similarly to what examples show (that is, old data is removed, new data is pushed and entire array is supplied to series.data in setOption). When profiling the app, I realized that a big part of setOption's execution time is spent on cloning (function called clone). The rest seems like a small part compared to that. I'd like to know whether data could be passed in another way in which the performance would be hurt less, or whether it's something that could be improved on your side.
Analysing one of the function calls from the screenshot below:
total setOption execution time: 107.93 ms
approximate time spent in some cloning function: 54.26 ms
This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.
This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!
Version
5.3.3
Link to Minimal Reproduction
No response
Steps to Reproduce
Create a line chart with a few series and animations turned off which is periodically updated (in my example every 100ms) using
setOption
function by supplying the entire history of data for the visible period of time:Every series has around 100 000 data points
Current Behavior
Recently I created a demo app to check whether echarts would fit my team's use case. In our application we have multiple history graphs with varying time intervals which are first pre-filled with historical data and then updated with varying frequency, sometimes as often as every 100ms. I do it similarly to what examples show (that is, old data is removed, new data is pushed and entire array is supplied to
series.data
insetOption
). When profiling the app, I realized that a big part ofsetOption
's execution time is spent on cloning (function calledclone
). The rest seems like a small part compared to that. I'd like to know whether data could be passed in another way in which the performance would be hurt less, or whether it's something that could be improved on your side.Analysing one of the function calls from the screenshot below:
setOption
execution time: 107.93 msExpected Behavior
Reduction of
setOption
execution timeEnvironment
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: