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

Lint: Nested layout weights: exponential performance loss in viewers #8

Open
emigenix opened this issue Apr 17, 2017 · 0 comments
Open
Labels

Comments

@emigenix
Copy link
Contributor

Priority: Urgent

Problem:
Scrolling often feel laggy, especially in the event viewers. The XML files and code controlling these viewers are far from optimized and possibly outdated at worst.

Lint give the following complaint:

Nested weights are bad for performance

and explains it with:

Layout weights require a widget to be measured twice. When a LinearLayout with non-zero weights is nested inside another LinearLayout with non-zero weights, then the number of measurements increase exponentially.

The 79 affected XML files are too many to show...
Please compile and check lint results for more details

@emigenix emigenix added the bug label Apr 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant