MindFreeze commented on issue #17641:
URL: https://github.com/apache/echarts/issues/17641#issuecomment-2655687985

   `clone` doesn't take that much time in my case but I found another major 
issue.
   The chart rerenders fully for every `setOption` call. So even if you just 
want to enable `dataZoom`, change the tooltip formatter or even with just 
`setOption({})`, you get a full render. This can block the main thread for a 
long time when there is a lot of data.
   This can be somewhat mitigated by checking the new options and skipping 
render in some cases.
   Another improvement would be async rendering where echarts releases the main 
thread (with setTimeout, for example) during long renders. A `setTimeout` 
between rendering each series would be the most simple approach. Chunking all 
the data would be more comprehensive.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to