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 49850 - DataNode.getDisplayName is much slower on masterfs
Summary: DataNode.getDisplayName is much slower on masterfs
Status: RESOLVED DUPLICATE of bug 41118
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 4.x
Hardware: PC All
: P2 blocker (vote)
Assignee: rmatous
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2004-10-03 08:30 UTC by Jaroslav Tulach
Modified: 2008-12-22 23:51 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 Jaroslav Tulach 2004-10-03 08:30:35 UTC
I do not have performance nubmers, but from I see
in code and in debugger I guess it is crystal
clear: the Status impl in masterfs ruins all the
performance optimization we did in 3.6. This is
likely one of the reasons why expanding a folder
is slow.

There is a performance optimalization in
DataObject.files() to quickly return first element
as that is what most of the filesystems want, as a
result DataNode.getDisplayName,
DataNode.getHtmlname, DataNode.getIcon is fast as
it does not need to resolve secondary entries.
This is not true on masterfs, as soon as someone
calls masterfs.getStatus().annotateName(..., set)
it eagerly asks for all the set items and
initialize them resulting in a bunch of
unnecessary computation as the result is not
needed anyway.

The masterfs must rewrite its conversion methods
to be behave lazily.
Comment 1 rmatous 2004-10-04 11:40:15 UTC

*** This issue has been marked as a duplicate of 41118 ***