An Oracle blog about NetBeans for PHP

Help Me to Improve Performace

This is basically request for help to identify use cases, when the PHP editor is slow. Last few days I have fixed some performance problems. Mainly improving speed of writing in the php editor and invoking code completion. The fixes that I create are already in development builds, NetBeans 7.0 Beta is old build for this purpose. Please try a latest build that can be downloaded from NetBeans site or from continual build server. The builds from the continual build server are better, because these are build over web-main repository and contains our latest changes. The build that you can download from NetBeans site is build from main repository, where our changes are pushed automatically and it can take 2, 3 days when there are some problems.  

The editor has many features that consume processor time during typing. The source code is parsed after 500 ms from last key press. Features like navigator, code folding, hints etc. react almost on every change.  We add more features, the editor should made more "clever", but the editor has to be still fast to be useful and usable.

The reports like "the code completion is really slow" doesn't help me very much. I can not have the same environment as you have. The best is if you find a reproducible case. Also the "Profile me" functionality is useful in these cases.  Just attach the snapshot to a bug like #189889 or create new one or send me the snapshot directly with a comment. 

I'm mainly interested in the usecases that are connected with code completion and typing in editor. If you have slow project scanning, it's another story.

Thanks for your help.   

Join the discussion

Comments ( 11 )
  • Pet Thursday, December 9, 2010

    here is one: #192775 ;)

  • Petr Pisl Thursday, December 9, 2010

    The issue #192775 is probably the same as #193040 and this I fixed yesterday. Thanks.

  • Azizur Rahman Thursday, December 9, 2010

    Hi Petr,

    I wonder is there a way I can get the NetBeans IDE to automatically update on startup to the release you mentioned.

  • Matej Szendi Thursday, December 9, 2010

    Can you add option for code completetion activation delay?

  • Bali Friday, December 10, 2010

    The code completion activation delay would be fine.

    Compared to other IDEs like Zend Studio which has a lot of performance problems I always have the feeling that Netbeans code completion has a built in delay.

    If you simply type "m" then it takes ~1-2sec to open the list or if you use -> operator then again ~1-2 sec to get the list displayed.

    And I have tried it on a PC with 4x2,66GHz CPU + 8GB RAM + SSD and also on a PC with only 2x1,8GHz CPU + 2GB RAM + normal HDD and seems to be no difference in delays.

  • Roberto Friday, December 10, 2010

    Hi, first many congratulations for your job, if you think that NB is also for newbie developers, these are for me important aspects that must be improved.

    (if you are interested only at the old developer, please tell us how to resolve the follow problems anyway!)

    1) the ftp panel shows only the local profile and not the remote

    2)the scanning project is very very slow and take a lot of time every time you start Netbeans

    3) Could be very interesting to give different color to the name of file in the projects panel

    4)The ftp output always come out when you upload or download a file, for me could be better if it can remain in background.

    Thank you anyway for your job, I consider Netbeans a really great application and sorry for my english.

  • Marko Monday, December 13, 2010

    I've used Netbeans IDE 6.9 to work on Magento project. I've written few modules and worked with template files. Code completition used to perform very slow, usually followed by message dialog 'lengthy operation in progress'. I tried opening the same project in Eclipse and got much better performance. Non the less, I use NetBeans every day and plan on doing so for a long time.

  • Michael Wednesday, January 5, 2011

    Thanks for the nice IDE so far! I really enjoy working with it. It has nice features that other very expensive commercial tools lack.

    Maybe, this one is more off topic as you indicated you would like to focus more on "code completion and typing in editor", but I think it's a concrete use case. One of the things I've noticed is that project scanning becomes really slow as soon as the number of files start growing. Would it be a good idea to add a possibility on project level to exclude certain paths from scanning? I'm thinking of log or data folders that can grow drastically when you're developing/testing, folders for images, etc.

  • binary Tuesday, January 25, 2011

    Michael, project properties -> ignored folders? Ignored folders won't show in project's tree though.

  • Michael Wednesday, January 26, 2011

    Never noticed this option, but it exactly does the trick and will make a huge difference in my day to day work with Netbeans.

    Thanks for taking the time to answer and please ignore my silly post then.

  • Neels Wednesday, February 16, 2011

    I'm currently using NB 6.9.1 for PHP and JS development. I found that when a syntax error(s) is detected on the page, the CPU workload increases significantly, affecting speed. This is most often on the same line I'm busy typing. I always felt that the IDE could just wait for me to complete the line before complaining! New input/text should only be scanned once the user moves away from the line or starts a new code line based on new code line syntax rules. Basically related, but easier to fix is the VERY annoying red underline for not having the line terminator character like ";" while still typing the line.

    Thank you for all your hard work and an excellent product.

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.