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

Summary: Slow IDO.getName()
Product: platform Reporter: _ rkubacki <rkubacki>
Component: Data SystemsAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED FIXED    
Severity: blocker Keywords: PERFORMANCE
Priority: P4    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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