visjs/ngx-vis

Performance Optimization

hypery2k opened this issue · 3 comments

Is your feature request related to a problem? Please describe.
Vis Timeline triggers periodically via setTimeout for a rerender. This causes performance issues (as shown by @luchsamapparat):

Untitled_ Jan 22, 2020 11_25 AM

Describe the solution you'd like

  • We could initially run the Vis Timeline outside the ngZone, but needs then to make change detection manual
  • I think we should also think about the setTimeout Method

Describe alternatives you've considered

Additional context
Demo: https://vistimelineexample.z22.web.core.windows.net/
Source: https://github.com/luchsamapparat/vis-timeline-example

Maybe related to #385 and #211

Timeline is best to be discussed with @yotamberk. My insight into this is limited.

Could be verified with Lighthouse CI