You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/09/20 08:03:22 UTC

[GitHub] [incubator-echarts] pissang commented on pull request #13314: [5.0] [Performance] Improve large line performance. Improve line smoothing.

pissang commented on pull request #13314:
URL: https://github.com/apache/incubator-echarts/pull/13314#issuecomment-695758284


   @leeoniya Thanks for the benchmark. I'm really impressed by the performance of uPlot 
   
   I add an optimized version that takes a Float64Array as data input. It's a bit more complex to write but has better performance and takes less heap memory.
   
   https://echarts-bench-from-uplot.glitch.me/index-optimized.html
   
   Tested it on my 15inch mac. The initialization time is about 170ms. And the heap memory is about 10~12MB(peak), 5MB(final).
   
   About the smoothing algorithm. I have tried the Catmull-Rom Spline before. But it has similar issues which looks quite weird 
   
   <img width="1041" alt="infoflow 2020-09-20 15-59-58" src="https://user-images.githubusercontent.com/841551/93706604-69455000-fb5a-11ea-8a0b-0d32d290d2ef.png">
   
   I'm not sure if you did any modification on the spline.


----------------------------------------------------------------
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.

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



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