-
Notifications
You must be signed in to change notification settings - Fork 884
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
very slow when it comes to +20 lines with +10 columns ? #189
Comments
@damnko would you like to take a look? Sounds like a challenge. |
@LexZhukov or @nnixaa do you remember what's the use case of this method? ng2-smart-table/src/ng2-smart-table/components/cell/cell-view-mode/view-cell.component.ts Lines 20 to 22 in 8a54dea
I wanted to focus first on all |
@damnko there is a feature when you can specify a |
@damnko thanks for the workaround, it really helped. I commented out the line 21 in view-cell.component.ts while waiting for the fix in the coming update. |
@nnixaa thanks for sharing that info, I was also thinking why do we have to check for that on every |
@damnko this sounds perfectly right! 👍 |
@nnixaa yep I believe so, will keep you posted |
How is it going? |
I have the smart table component injected into the DOM conditionally via an *ngIf. When the smart table is part of the DOM anywhere in the screen, the mouseOver related UI updates drops from ~60fps to ~2fps. This test was carried out with ~150 rows x 5 columns in the smart table, with pagination disabled. Looking further with Chrome timelines, it appears when smart table is rendered on the screen, a tremendous amount of processing is done in Angular 2's change detection logic. ApplicationRef_.tick() specifically. Does this problem sound familiar for anyone else? |
Is there update on this issue fix? |
Just spend hours configuring the table before I noticed this issue. The table is basically unusable until this is fixed. Is there any progress? |
looks like critical issue :/ anyway - well done guys, loving this tool |
we like the smart table a lot, would be great if you could fix the performance issue soon |
Same problem here. @damnko @nnixaa I think I found performance problem:
|
Hey Guys, we are investigating the issue, and hopefully planning to release a fix soon. |
This bug is fixed in 69e883c. Try to update to the latest 1.2.0 version of ng2-smart-table. |
Hi @lexzhukov, thnx for fix, but I have inifinite loop problem now:
I think it is something like this #229 |
@vlapo this is fixed. Try to install v1.2.1. |
@lexzhukov greate work!👍 I think performance is better :) Of course, I don't have so many columns but with 6 columns and 30 rows there is no lagging. |
Hi @lexzhukov , |
We had this very same issue in another app it turns out the use of ngFor is the root cause in IE 11 you need to add trackBy: trackByFn ... trackByFn being a function in your component like so trackByFn(index, item) { Once I add that into my component the page improved quite a bit from 2-3 minute load time down to 2-3 seconds.. Lots of records :) |
@cyborgdoom Where are you to add trackBy function if you don't have access to ngFor statement could you please explain me how to do it? |
it makes all the app slow ! any ideas of how to optimis performance ? is theire way to stop watching the source (one time binding) ?
The text was updated successfully, but these errors were encountered: