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 42388 - Expansion of Source Packages node in Projects tab is slow
Summary: Expansion of Source Packages node in Projects tab is slow
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Petr Hrebejk
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2004-04-23 12:34 UTC by Antonin Nebuzelsky
Modified: 2007-09-26 09:14 UTC (History)
2 users (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 Antonin Nebuzelsky 2004-04-23 12:34:06 UTC
Dell Precision 220, PIII 800MHz, 512MB RAM, W2000
j2skd 1.5.0-beta2 b46
trunk build 200404230645

Expanding of [a project] / Source Packages takes a
long time. It should be investigated if this can
be made faster.

First expansion of jEdit project's source packages
(22 items):
   3704ms, 3375ms, 3547ms
First expansion of openide project's packages (55
items - CVS's not filtered out by VCS FS):
   5234ms, 5015ms, 5203ms
(26 items - CVS's filtered out by VCS FS):
   4750ms, 4078ms, 4250ms
Comment 1 Jesse Glick 2004-04-23 18:18:13 UTC
Petr plans to rewrite the package view. Hopefully performance will be
better with the rewrite.
Comment 2 Petr Hrebejk 2004-04-26 09:36:43 UTC
It sould be a bit better now after the PackageView rewrite. But do not
expect it to be as fast as simple folder opening as it still has to 
traverse the whole folder hierarchy in order to find all the packages.
Comment 3 Petr Hrebejk 2004-04-26 09:42:17 UTC
Correcting target milestone
Comment 4 Jesse Glick 2004-04-26 21:16:06 UTC
Probably the package view should scan for packages asynchronously and
add them as it finds them (as e.g. FolderChildren does for folder
recognition). Does it do this? If not, it may be a performance problem
for large source roots.
Comment 5 Antonin Nebuzelsky 2004-04-28 17:13:57 UTC
The improvement is major.

jEdit project's source packages: 1100ms (was ~3500ms)
openide project's src packages:  1700ms (was ~5200ms)

Closing as Verified. The time is not <1000ms but there is an
indication of hour-glass cursor and IMHO the time is now very reasonable.