Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-2507

Slow Java code completion

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 11.0
    • 11.2
    • None

    Description

      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
      • 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

      Attachments

        1. selfsampler.npss
          361 kB
          Anthony Vanelverdinghe

        Issue Links

          Activity

            People

              Unassigned Unassigned
              anthonyv.be Anthony Vanelverdinghe
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: