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 28042 - speed up initialiation of Javadoc Manager dialog
Summary: speed up initialiation of Javadoc Manager dialog
Status: RESOLVED DUPLICATE of bug 23817
Alias: None
Product: java
Classification: Unclassified
Component: Javadoc (show other bugs)
Version: 3.x
Hardware: PC All
: P2 blocker (vote)
Assignee: _ pkuzel
URL:
Keywords: PERFORMANCE
Depends on:
Blocks: 27795
  Show dependency tree
 
Reported: 2002-10-16 10:42 UTC by David Simonek
Modified: 2003-12-11 14:23 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Simonek 2002-10-16 10:42:54 UTC
First open takes longer then 1 second, which
violates UI responsiveness rules.
I will cooperate and help with speedup. I'll try
to identify time-consuming places using optimizing
tools, ask you for further information, perhaps I
will attach some patches. See measured numbers here:

http://performance.netbeans.org/reports/20020919-dialog-numbers.txt
Comment 1 David Simonek 2002-10-22 15:57:23 UTC
Optimization tool analysis showed following bottlenecks:

1) JavaDocFSNode - JavaDocFSSettings - is complete initialization
needed and why it takes so long?
15.71% - 806 ms -
org.netbeans.modules.javadoc.search.JavaDocFSNode$2.getValue()

2) Why should be whole BeanInfo loaded just to get icon? 
19.57% - 1004 ms -
org.netbeans.modules.javadoc.search.JavaDocFSNode.getIcon()

3) DocSourceManager.initComponents does too much things in
initComponents (although majority of time is class load time)
35.92% - 1842 ms -
org.netbeans.modules.javadoc.DocSourcesManager.initComponents()

4) Init of TableTreeView itself is slow
 10.51% - 539 ms - org.openide.explorer.view.TreeTableView.<init>()

Javadoc maintainer, please evaluate 1), 2) and 3) soon. Thanx.
Comment 2 Petr Nejedly 2003-07-09 15:11:39 UTC
BTW: This snippet from JavaDocFSNode is Really Cool(tm):
public Object getValue () {
  if( getJavaDocFSSettings().getSecondRoot() != null )
    return getJavaDocFSSettings().getSecondRoot();
  else
    return null;      //NOI18N
}
Comment 3 _ pkuzel 2003-09-09 17:13:22 UTC
I'm now responsible for JavaDoc module.
Comment 4 _ pkuzel 2003-09-11 20:59:17 UTC
Javadoc Manager will be replaced by JavaDoc resources. (libraries)

*** This issue has been marked as a duplicate of 23817 ***