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

Code completion is very slow on larger PHP projects

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 12.0, 11.2
    • None
    • Windows 10 64bit
      20GB RAM (NB peak is usually around 2GB)
      Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz (4 phys cores, 8 logical)

    Description

      I'm currently working on PHP project. Project is composed using composer, using our subgit modules. Currently we have around 70 modules in the project. Each module consists from up to 15 php classes.

      Code Completion got already very slow with such amount of files. It takes me up to 13-20 secs to invoke code completion to see list of some object methods (including $this-> , which I guess could be extremely fast). 

      Steps taken to try to fasten up a bit:

      • Removed project folder from Window Defender scanner - problem persisted with no noticeable speedup
      • Disabled Windows Defender completely - problem persisted with no noticeable speedup
      • Updated from NB 11.2 to 12.0 - problem persisted with no noticeable speedup
      • Changed Java SDK from 12.0.1 to 14.0.2
      • Tried set max heap memory limit to 4GB - problem persisted with no noticeable speedup

       

      Invocation of code completion popup rises processor usage from <10% to around 50%. Also, increased memory usage to about 2GB.

       

      As the system I am writing is proprietary, I cant simply send the source code. However we can definitely arrange some online screensharing using Skype / Hangouts, or VNC to online test.

      Attaching snapshot of one code completion invocation. 

       

      During searching the issues, I found out there could be a problem with some native windows related file listing functions - perhaps the problem lies there? But I tried another IDEs, which works flawlessly on this big project, so they either use some different functions or there could be truly a bug in NB.

      Attachments

        1. netbeans_stuck.nps
          60 kB
          Matěj Kmínek

        Activity

          People

            Unassigned Unassigned
            KminekMatej Matěj Kmínek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: