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 63981 - Slow IDO.getName()
Summary: Slow IDO.getName()
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: PERFORMANCE
: 53969 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-09-09 13:54 UTC by _ rkubacki
Modified: 2008-12-23 00:42 UTC (History)
0 users

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-09-09 13:54:42 UTC
This method is called >2200 times during startup and always tries to get "name"
attribute of underlying FileObject. If there is no such attribute it gets the
name of fileobject and this happen in almost all cases (unless you customize
some setting like add new AutoUpdate). Searching of attribute is not the
cheapest operation as it goes through our MFS and assembles name of file.

We should at least try not to check if there is the attribute every time. This
can save >75% of calls to FO.getAttribute from this place.
Comment 1 Jaroslav Tulach 2005-09-13 07:43:22 UTC
*** Issue 53969 has been marked as a duplicate of this issue. ***
Comment 2 Jaroslav Tulach 2005-09-16 12:49:29 UTC
Checking in loaders/src/org/openide/loaders/InstanceDataObject.java; 
/cvs/openide/loaders/src/org/openide/loaders/InstanceDataObject.java,v  <--  
InstanceDataObject.java 
new revision: 1.25; previous revision: 1.24 
done 
RCS 
file: /cvs/openide/loaders/test/unit/src/org/openide/loaders/InstanceDataObjectGetNameTest.java,v 
done 
Checking in 
loaders/test/unit/src/org/openide/loaders/InstanceDataObjectGetNameTest.java; 
/cvs/openide/loaders/test/unit/src/org/openide/loaders/InstanceDataObjectGetNameTest.java,v  
<--  InstanceDataObjectGetNameTest.java 
initial revision: 1.1