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: | Creating new classes is slow | ||
---|---|---|---|
Product: | java | Reporter: | Tomas Pavek <tpavek> |
Component: | Unsupported | Assignee: | issues@java <issues> |
Status: | RESOLVED WONTFIX | ||
Severity: | blocker | Keywords: | PERFORMANCE |
Priority: | P2 | ||
Version: | 3.x | ||
Hardware: | PC | ||
OS: | Windows ME/2000 | ||
URL: | http://performance.netbeans.org/reports/projects-performance.html | ||
Issue Type: | TASK | Exception Reporter: | |
Attachments: |
profiling snapshot of 1st use of "Next" step; "sampler" method
classes loaded during the 1st "Next" step invocation profiling snapshot of 1st finishing wizard and opening java file; "sampler" profiling method profiling snapshot of 2nd finishing wizard and opening file; "sampler" profiling method classes loaded during 1st finish&open |
Description
Tomas Pavek
2003-05-30 10:47:50 UTC
See also issue 28959 how the responsiveness was improved in NB 3.5. Attaching profiling snapshots done in OptimizeIt on build 200305230000 (note creating new class does not work in newer 200305300000). Created attachment 10522 [details]
profiling snapshot of 1st use of "Next" step; "sampler" method
Created attachment 10523 [details]
classes loaded during the 1st "Next" step invocation
(1) seems to be the usual first-use heavy class loading & initialization problem - about 700 classes are loaded. This is a bit better in 20030528 build where editor warm-up was partially reimplemented, but editor probably should not be touched at all in this phase... Parsing seems to be involved significantly too. I guess this could be tuned using a reasonable combination of lazy initialization and warm-up techniques. Created attachment 10524 [details]
profiling snapshot of 1st finishing wizard and opening java file; "sampler" profiling method
Created attachment 10525 [details]
profiling snapshot of 2nd finishing wizard and opening file; "sampler" profiling method
Created attachment 10526 [details]
classes loaded during 1st finish&open
(2) also suffers from class loading & initialization in the first use, but there is also significant time spent in tempalte instantiation even for the second time. There could be also some inefficiency in updating the UI (explorer nodes, opening editor). The projects prototype has been canceled. For more details see http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss |