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.
Summary: | projectDescriptorProvider.getConfigurationDescriptor() in ProjectOpenedHookImpl.projectOpened thread significantly slows down IDE startup time | ||
---|---|---|---|
Product: | cnd | Reporter: | _ nzero2002 <nzero2002> |
Component: | Project | Assignee: | Thomas Preisler <thp> |
Status: | CLOSED FIXED | ||
Severity: | blocker | CC: | gordonp |
Priority: | P1 | ||
Version: | 5.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
_ nzero2002
2007-07-10 13:05:56 UTC
What makes you think the compiler validation is taking 23 seconds? That sounds awfully extreme! Also, doing this in a thread does not sound safe. The NB project module (not ours) was written with the assumption that a project was 100% opened after the project open call returned. We already break this rule and IMHO thats where most of the NPEs fixed late in 5.5.1 came from. Moving more stuff onto separate threads is likely to cause more problems of this type. A much more reliable approach to this problem would be to find a way to defer compiler validation. Currently the cnd project system doesn't allow this. As I see, the hotspot is not the compiler validation phase in this method, but the projectDescriptor = projectDescriptorProvider.getConfigurationDescriptor(); which cause reading full configuration.xml (about 3Mb for mysql) and initializing all internal data structures may be it's possible to postpone this expensive reading? I'm renaming issue to point to hotspot I also think reading configuration.xml is the problem. Even worse, its read before you even open the project. Open the Open Project chooser and single-click-to select any makeproject. This selection reads configuration.xml. If you use keyboard navigation over multiple projects, especially large projects, you're reading each configuration.xml file. Even if you don't open the project! I agree with the note, btw, this is the topic of http://www.netbeans.org/issues/show_bug.cgi?id=98081 Fixed. See http://www.netbeans.org/issues/show_bug.cgi?id=98081 for details. |