Skip to content

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

@emigenix

Description

@emigenix

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions