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 48001 - JavaNode icon resolving is slow
Summary: JavaNode icon resolving is slow
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2004-08-26 15:00 UTC by _ rkubacki
Modified: 2007-09-26 09:14 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 2004-08-26 15:00:16 UTC
Thought it is scheduled to run asynchronously on a
background it is still consuming too many
resources. And for large folder this asynchronous
processing can still interfere with node creating.

It queries file attributes to check if the node is
a template in a resolveIcon methos. Perhaps faster
is to call DO.isTemplate only if the DO resides on
a SFS. And there is next call to DO.isTemplate in
getIcon method.

It seems to me that it creates and old src object
to obtain status of source file.

Another slow part call to FileBuiltQuery. See
comments in issue #41084
Comment 1 Jan Becicka 2004-08-27 14:55:26 UTC
Fixed.

Checking in JavaNode.java;
/cvs/java/src/org/netbeans/modules/java/JavaNode.java,v  <-- 
JavaNode.java
new revision: 1.115; previous revision: 1.114
done