Skip to content
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

perf: Performance issues with ion-checkbox and *ng-For #5353

Closed
Bandito11 opened this issue Feb 6, 2016 · 3 comments
Closed

perf: Performance issues with ion-checkbox and *ng-For #5353

Bandito11 opened this issue Feb 6, 2016 · 3 comments
Assignees
Milestone

Comments

@Bandito11
Copy link

Type: perf

Ionic Version: 2.x

Platform: android 6.0 webview

This was tested in android device running 6.0 and 4.1, the computer web browser 'ionic-serve', genymotion emulator running android 4.4 and windows 10 platform.

Here is the app I did using this:
https://github.com/Bandito11/cibum2/blob/master/app/pages/main/ingredientes.html

Issue:
When iterating through the array list (which have over a 100 items) using an ion-checkbox the performance is ridiculously bad. When taking out the ion-checkbox and using it iterates as fast as expected.

More details here:
https://forum.ionicframework.com/t/ngfor-performance-issues-when-getting-a-long-list-of-items/43010

@Ionitron Ionitron added the v2 label Feb 6, 2016
@adamdbradley adamdbradley self-assigned this Feb 10, 2016
@adamdbradley adamdbradley added this to the 2.0.0-beta.1 milestone Feb 10, 2016
adamdbradley added a commit that referenced this issue Feb 13, 2016
Remove the value property and always recommend ngModel or ngControl.
Closes #5353
@tonirilix
Copy link

tonirilix commented Nov 25, 2016

EDIT:
Nevermind. I stumbleupon with virtual scroll and I think is a really good way to solve this issue.
If anyone is interested take a look to this link:
https://ionicframework.com/docs/v2/api/components/virtual-scroll/VirtualScroll/

PREVIOUS COMMENT:
I was able to reproduce this issue in the current version of ionic (RC3) using the tabs template.
Same behavior happens to me after about 100 ion-checkbox elements. The page will be laggy as well as the touch effect.

I did the same tests from the issue description and using a normal input type checkbox the screen will render fast.

Is there any chance we can reopen this issue please?
Thanks!

@moritzgloeckl
Copy link

This is somehow still an issue for us... Using the ion-checkbox makes our scroll list unusable even with virtual scroll.

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 9, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants