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.
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.
*** Issue 53969 has been marked as a duplicate of this issue. ***
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