Skip to content

LintDriver Takes a Long Time To Load #16

@EdbertChan

Description

@EdbertChan

Wasn't sure where to put this because this is not AGP related (only Lint performance related) but I figure I should add this here.

We are migrating from Buck which uses version 27 to Bazel and adding in 31.7.3.

We are noticing extraordinarily long times when it comes to LintDriver. In particular, it looks like loading an entire project is responsible for taking the lion share of the effort all for a few seconds of linting.

We do not encounter this issue with Buck. Project is a mixed sourceset Kotlin + Java + Android project.

Furthermore, because the commits in https://android.googlesource.com/platform/tools/base/+/studio-master-dev/lint are not tagged with the release, we are just speculating which commit the diff was done on. We are working off of commit 5c8cf1a32be1a0d6220e8a0beb8d0c987182f2dd.

Flame Chart was produced by YourKit. Any advice or help on where to look would be greatly appreciated!

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions