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 57183 - Slow init of RootNode in database explorer
Summary: Slow init of RootNode in database explorer
Status: VERIFIED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Rob Englander
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2005-03-30 12:25 UTC by _ rkubacki
Modified: 2009-02-19 20:38 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ rkubacki 2005-03-30 12:25:34 UTC
dev build from Mar 29, JDK 1.5.0u2, Linux, Dell notebook w/ 2GHz P4 CPU/1GB RAM

It takes ~0.1 sec to create an o.n.m.db.explorer.RootNode that is used in
runtime tab. This node is created either on startup or when I open the tab or
during shutdown. 

It seems that parsing in PListReader is too slow. 
The code like:
    void initDebugListening() {
        if ( (getOption() == null) || (sfactory == null) ) {
            initDebugListening();
        }
is an unsuccesfull attempt to cause stack overflow. Someone should carefully
rewrite this ugly code.
Comment 1 _ rkubacki 2005-03-30 12:46:04 UTC
Parsing of 43kB with stream tokenizer and processing of your own scripting
language can hardly be cheap. Especially if EOFExceptions are used to control
the flow.
Comment 2 Petr Blaha 2006-03-13 13:32:17 UTC
TM 5.0 -> TBD
Comment 3 Andrei Badea 2006-05-25 16:18:35 UTC
The idea of describing the UI in a plist file is flawed, and not only from the
performance point of view. Unfortunately too late to do anything about it in
5.5, it would require a lot of changes.
Comment 4 David Vancouvering 2008-01-09 23:07:51 UTC
This requires a big change, and we are not staffed to do this.
Comment 5 David Vancouvering 2008-01-12 01:27:23 UTC
I have not heard of any performance complaints around this, downgrading to a P4.
Comment 6 _ rkubacki 2008-01-12 01:39:28 UTC
This bug itself is my complaint containing one particular reason why startup/shutdown is slow. Slow startup/shutdown is
a known problem I hope.
Comment 7 David Vancouvering 2008-11-12 17:34:06 UTC
This will be fixed through the explorer rewrite.  Reassigning to Rob.
Comment 8 Rob Englander 2009-01-06 23:53:45 UTC
Fixed by recent db explorer rewrite.
Comment 9 Roman Mostyka 2009-01-10 21:32:55 UTC
Verified.