Skip to content

Slow completion and insertion into a gradle project #6759

Open
@philippefichet

Description

@philippefichet

Apache NetBeans version

Apache NetBeans 20 release candidate

What happened

Code completion, and especially code insertion, is much slower with a Gradle project than with a Maven project.

How to reproduce

Just clone the https://github.com/philippefichet/slow-netbeans-example repository and see how long it takes to complete and insert code in the "src/main/java/com/github/philippefichet" class.
/OneEntity.java" class.
On line 17, do this between "return new Str" and "ing();" and complete with the "String (java.lang)" propotition
In the Maven project, insertion is fast, whereas in the Gradle project it's much slower.
A JFR screenshot for Gradle and Maven and an animated screenshot for Gradle and Maven are available in the repository.

Did this work correctly in an earlier version?

No / Don't know

Operating System

Edition: Windows 10 Professionnel, Version: 22H2, Build: 19045.3693

JDK

Zulu21.28+85-CA

Apache NetBeans packaging

Apache NetBeans binary zip

Anything else

Slowness is less noticeable under Linux, but still seems to be present.

Are you willing to submit a pull request?

No

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