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: | Opening first file in editor is slower with new build system | ||
---|---|---|---|
Product: | editor | Reporter: | Antonin Nebuzelsky <anebuzelsky> |
Component: | -- Other -- | Assignee: | Miloslav Metelka <mmetelka> |
Status: | CLOSED WONTFIX | ||
Severity: | blocker | CC: | dkonecny, issues, issues, jglick |
Priority: | P2 | Keywords: | PERFORMANCE, REGRESSION |
Version: | 4.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 41535 | ||
Attachments: | Screenshot of jprofiler's call tree window |
Description
Antonin Nebuzelsky
2004-03-17 15:11:39 UTC
The only additional overhead introduced by new build system is time spent in queries. The queries was significantly improved. Could someone perform new analyzes on build without refactoring? The same configuration, last trunk build before merge of refactoring. 1) Opening Main20kB.java as a first file after start W2K: 200406011800 - 1797ms, 1719ms, 1609ms Linux: 200406011800 - 2946ms, 2870ms, 3019ms 2) Opening Main20kB.java after the IDE starts with a Main.java already open in the editor W2K: 200406011800 - 610ms, 563ms, 594ms Linux: 200406011800 - 866ms, 864ms, 854ms Assigning the bug to myself. I will have a look at the first opening of java file in profiler. Tomasi, great portion of the first file opening time is spent in JCFinderFactory.getFinder() and in JCBaseFinder.getExactPackage(), see the attached call tree from profiler. Created attachment 15448 [details]
Screenshot of jprofiler's call tree window
The JCFinderFactory was removed during MDR merge and JCBaseFinder can now behave completely different. In general, throw out any performance data you might have had regarding the editor, parser database, etc., since it is all quite different after the refactoring merge. According to the JProfiler screenshot it seems that the most time is spent in the editor module. But the JCClass stuff was completely redesign, probably the bug is obsolete. Yes. This issue can be closed. The main performance problem was caused by creation of JCBaseFinders, where parserDB files were read from disk and memory parserDBs were created. This took 1600ms. Parser DB files were replaced by MDR, behaviour is different. OK, forget this bug. I have entered a fresh one ;-) See issue 44661. |