Skip to content

[Performance] Precalculating AST during save freezes UI #2414

@fedejeanne

Description

@fedejeanne

When saving a java file, the post save actions may trigger the calculation of the AST in the UI thread, which sometimes results in a UI freeze.

Here's an example:

Image

The code that does this is:

if (requiresAST(cleanUps)) {
ast= createAst(unit, options, Progress.subMonitor(monitor, 10));
}

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