This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 186807 - IDE startup takes long time if several projects are open
Summary: IDE startup takes long time if several projects are open
Status: RESOLVED WORKSFORME
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: igor_nikiforov
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2010-05-27 12:48 UTC by Alexander Pepin
Modified: 2012-09-20 11:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Hot spots (2.93 KB, text/plain)
2010-05-27 15:15 UTC, Alexey Vladykin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pepin 2010-05-27 12:48:51 UTC
It seems to be a general NB IDE project system issue.
Steps to reproduce:
- run IDE with a fresh userdir
- create Welcome, Quote and Fractal local sample projects
- switch off NB Welcome page
- open welcome.cc, quote.cc and fractal.cc files in the editor
- close IDE
- open IDE
Result: It takes 12 seconds IDE window to appear and 12 seconds more to show 3 projects in the Projects view (before projects parsing). In my opinion it's too slow for such small projects.
Comment 1 Leonid Lenyashin 2010-05-27 13:30:51 UTC
It might be related to BZ#186803, but I'm not sure
Comment 2 Alexey Vladykin 2010-05-27 14:56:36 UTC
On my Linux laptop with a slow HDD and a mid-end CPU the main NB window appears in about 8 seconds, and projects are opened in another 8 seconds. What is your OS by the way?

I've checked the same for 3 sample Java SE projects and 3 files open in editor. IDE startup time is pretty the same as for C/C++ projects. So you are probably right that it's a general NB issue.
Comment 3 Alexey Vladykin 2010-05-27 15:15:32 UTC
Created attachment 99553 [details]
Hot spots

Here is the list of hot spots as detected by YourKit profiler.
Note that I disabled all kinds of C/C++ semantic highlighting before profiling to make sure that Projects view initialization is not delayed by opened editors. It didn't change the total startup time, but it removed some CND code from hot spots.
Comment 4 Alexander Pepin 2010-05-27 15:53:34 UTC
I mentioned numbers for my Linux desktop but the slowness is visible on any platforms and it heavily depends on number of open projects. e.g. on my Windows Vista laptop where I had 5 opened local and remote sample projects it required 25 seconds to open these projects what was very annoying.
Comment 5 Alexander Pepin 2010-05-27 16:24:22 UTC
On my Linux desktop opening pre-created "chromas" project with switched off C/C++ code assistance after starting IDE takes 56 seconds (no files are open in the editor).
I think it could be a candidate for 6.9.1.
Comment 6 Alexey Vladykin 2010-05-27 19:01:52 UTC
OK, targeting for "Next". Hope it will be 6.9.1.
Comment 7 Alexander Pepin 2010-08-12 15:09:25 UTC
A performance issue that should be fixed in 6.10
Comment 8 igor_nikiforov 2012-09-20 11:56:29 UTC
Alexander,

It look like that the issue you are describing has gone. I've used you scenario, but increased the number of projects to 10 with different files opened from each of them. I don not see any slowness, comparing to without-projects start.

I'll close this issue as WORKSFORME. If you have any test or some scenario that shows that issue is still with us, please reopen the issue. In that case we can re-measure hot spots and understand where the slowness is.

Regards,
  Igor