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

   @Ovilia Hi~
   
   I find that when the value have a big object, the setOption will take longer 
time.
   
   This is an Online demo to reproduce.
   
   https://codesandbox.io/s/confident-shockley-2t1e7n?file=/src/index.js
   
   <img width="1440" alt="image" 
src="https://user-images.githubusercontent.com/33452468/191929464-e525138c-a553-4e2c-bf4c-13c15e7715b2.png";>
   
   There is about 1000 x 50 values. And each item has a large `rawData`(it's a 
json object).
   
   Something like this:
   
   ```
   {
   itemStyle: {},
   value: [0, 10, 20, {...bigObject}]
   }
   ```
   
   Through the Performance tab of ChromeDevTool, I find the `clone` method of 
setOption take a long time. Like this:
   
   <img width="1440" alt="image" 
src="https://user-images.githubusercontent.com/33452468/191930306-2cb7f71d-9326-41a4-a5d2-4e0b8dc28d32.png";>
   
   I think there must be some deepClone processes? Is there any way not to 
clone ?
   
   
   
   
   
   


-- 
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: commits-unsubscr...@echarts.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org
For additional commands, e-mail: commits-h...@echarts.apache.org

Reply via email to