You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Geertjan Wielenga (Jira)" <ji...@apache.org> on 2019/10/22 13:32:00 UTC

[jira] [Commented] (NETBEANS-2507) Slow Java code completion

    [ https://issues.apache.org/jira/browse/NETBEANS-2507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16957062#comment-16957062 ] 

Geertjan Wielenga commented on NETBEANS-2507:
---------------------------------------------

Can you reproduce this as well with the latest NetBeans releases, e.g., 11.1 or 11.2 (to be released soon).

> Slow Java code completion
> -------------------------
>
>                 Key: NETBEANS-2507
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2507
>             Project: NetBeans
>          Issue Type: Bug
>          Components: ide - Performance, java - Editor
>    Affects Versions: 11.0
>         Environment: Product Version: Apache NetBeans IDE 11.0 (Build incubator-netbeans-release-404-on-20190319)
> Java: 12.0.1; OpenJDK 64-Bit Server VM 12.0.1+12
> Runtime: OpenJDK Runtime Environment 12.0.1+12
> System: Windows 10 version 10.0 running on amd64; UTF-8; en_GB (nb)
>            Reporter: Anthony Vanelverdinghe
>            Priority: Major
>         Attachments: selfsampler.npss
>
>
> There are serious issues with code completion in recent NetBeans versions. Attached is a profiling snapshot: all I did was triggering autocompletion at "java.nio.file.Files.<cursor>"
> Of the 2 "Code Completion" threads with the most CPU time:
>  * one spends over 9 seconds in [FastJar::list|https://github.com/apache/netbeans/blob/master/java/java.source.base/src/org/netbeans/modules/java/source/parsing/FastJar.java#L154]
>  * the other involves a call to org.netbeans.modules.j2ee.persistence.editor.completion.JPACodeCompletionProvider$JPACodeCompletionQuery.query () even though the code completion had nothing to do with JPA and neither the project nor the class use JPA



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists