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: | [perf] Opening first java file in editor takes significantly longer than in NB 3.6 | ||
---|---|---|---|
Product: | java | Reporter: | Antonin Nebuzelsky <anebuzelsky> |
Component: | Unsupported | Assignee: | Jan Pokorsky <jpokorsky> |
Status: | CLOSED FIXED | ||
Severity: | blocker | CC: | issues, issues |
Priority: | P2 | Keywords: | PERFORMANCE, REGRESSION |
Version: | 4.x | ||
Hardware: | PC | ||
OS: | Windows ME/2000 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 44099 | ||
Bug Blocks: | |||
Attachments: | commit log |
Description
Antonin Nebuzelsky
2004-06-09 18:00:56 UTC
*** Issue 43159 has been marked as a duplicate of this issue. *** *** Issue 41828 has been marked as a duplicate of this issue. *** The java fold manager was rewritten to not initialize the folds synchronously (please see issue 42333). The NavigationView maintained in the java module still populates its contents synchronously in AWT which causes the slowdown but this can be eliminated by turning the editor toolbar off. Closing as the editor part of the problem should now be fixed. Please reopen if necessary. I have measured the current state with combinations of codefolding ON/OFF, navigation view ON/OFF, opening first/second file. * Dell Precision 220, PIII 800MHz, 512MB RAM, W2K * JDK 1.4.2_04 * three measurements of all cases below with a restart of the IDE before measuring each number * Main20kB.java and Main.java can be found in cvs in core/test/qa-performance/src/gui/data/ The numbers below describe the moment when the editor was responsive, the numbers in parentheses describe the moment when the file was displayed (the editor may not be responsive already at the moment). CF ON ----- opening Main20kB as the first file after IDE start NV ON: 3265ms, 3406ms, 3328ms (displayed at 1250ms, 1343ms, 1338ms) NV OFF: 735ms, 765ms, 703ms opening Main20kb if Main is already open NV ON: 1687ms, 1434ms, 1437ms (displayed at 1687ms, 672ms, 750ms) NV OFF: 672ms, 641ms, 657ms CF OFF ------ opening Main20kB as the first file after IDE start NV ON: 1297ms, 1344ms, 1328ms NV OFF: 672ms, 687ms, 672ms opening Main20kb if Main is already open NV ON: 1328ms, 1313ms, 1734ms (displayed at 922ms, 719ms, 1734ms) NV OFF: 578ms, 563ms, 485ms These measurements indicate that the rewrite of java fold manager really helped to make the editor responsive sooner than only after all folds are initialized. However, the navigation view is making the editor unresponsive. This will hopefully change after navigation view is rewritten to use JMI instead of the source hierarchy bridge. Reopening and assigning to java core folks. Honza Pokorsky is working on it AFAIK. The NavigationView is rewritten: * removed dependency on java/srcmodel(NavigationView+JavaEditor) * keys and nodes creation scheduled out of the awt event queue(NavigationView+ClassChildren) Created attachment 16566 [details]
commit log
FYI, the fix of #issue 46702 brings further performance improvement for NavigationView. Verified that the numbers have improved. We are not regressed any more. * trunk build 20040804-0941 * jdk 1.4.2_04 CF ON ----- opening Main20kB as the first file after IDE start NV ON: 1171ms, 1156ms, 1219ms NV OFF: 719ms, 781ms, 766ms opening Main20kb if Main is already open NV ON: 719ms, 672ms, 641ms NV OFF: 688ms, 657ms, 625ms CF OFF ------ opening Main20kB as the first file after IDE start NV ON: 1000ms, 938ms, 1016ms NV OFF: 734ms, 734ms, 750ms opening Main20kb if Main is already open NV ON: 735ms, 734ms, 719ms NV OFF: 734ms, 734ms, 672ms Reorganization of java component |