Angular-calendar: Week view is slow

Created on 9 Apr 2019  路  3Comments  路  Source: mattlewis92/angular-calendar

The week view is slow.


Even on online demo the week view is much slower than the month view. It takes 1 or 2 seconds to change week. On my environment it takes one more second.
Is there a way to improve it ?

Versions

  • @angular/core:Current online version
  • angular-calendar:Current online version
  • Browser name and version: chrome 73

Most helpful comment

I just released 0.27.3 which makes things a lot faster now, on the demo the initial render of the week view is <200ms 馃帀 Everything else in the profiler was just DOM elements rendering, so maybe when ivy is stable this will get even faster 馃槃

All 3 comments

Thanks so much for opening an issue! If you'd like me to give priority to answering your issue or would just like to support this project, then please consider supporting me on Patreon

I noticed that too (https://github.com/mattlewis92/angular-calendar/issues/922) and found the culprit to be hammerjs, adding all the tap handlers for each segment of the week view turned out to have quite a perf hit. Are you using hammerjs by any chance? Also do you use the hourSegmentClicked output? I can probably disable adding the tap events if the hourSegmentClicked isn't set, and maybe even lazily initialise the listener using requestIdleCallback which should take care of the worst of the performance issues which are causing that initial render lag.

I just released 0.27.3 which makes things a lot faster now, on the demo the initial render of the week view is <200ms 馃帀 Everything else in the profiler was just DOM elements rendering, so maybe when ivy is stable this will get even faster 馃槃

Was this page helpful?
0 / 5 - 0 ratings

Related issues

teodoramalec picture teodoramalec  路  4Comments

IterationCorp picture IterationCorp  路  5Comments

no-more picture no-more  路  3Comments

arvind-das picture arvind-das  路  3Comments

mattlewis92 picture mattlewis92  路  3Comments