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.
Summary: | MasterFileSystem$StatusImpl.annotate[Icon|Name] spends too much time on transforming fileobjects | ||
---|---|---|---|
Product: | platform | Reporter: | Antonin Nebuzelsky <anebuzelsky> |
Component: | Filesystems | Assignee: | rmatous <rmatous> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | issues, jtulach |
Priority: | P2 | Keywords: | PERFORMANCE |
Version: | 4.x | ||
Hardware: | PC | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 49995 | ||
Bug Blocks: | 41084 | ||
Attachments: | Diff with impl. Please test whether it is crucial improvement. if not then its useless to pollute the code with such lazy sets |
Description
Antonin Nebuzelsky
2004-03-18 15:36:14 UTC
Created attachment 14260 [details]
Diff with impl. Please test whether it is crucial improvement. if not then its useless to pollute the code with such lazy sets
FYI, this issue now also applies to annotateNameHtml, which is a copy of the code in annotateName delegating to FileSystem.HtmlStatus instead of FileSystem.Status Hm, there is no measurable improvement with the attached diff. (with yesterday sources, on W2k on a local filesystem, expanding folder of 1000 java files) *** Issue 49850 has been marked as a duplicate of this issue. *** The issue 49850 that has been marked duplicate of this one is P2, so I am fixing that state as people might not realize that. There is no measurable perf. improvement because of insufficient impl of DataNode.LazyFilesSet. At least first element from Iterator must be returned quickly because I need at least one FileObject to decide where to delegate. Fixed. Although VCSFS still iterate through all items to annotate also secondary files. /cvs/openide/masterfs/src/org/netbeans/modules/masterfs/MasterFileSystem.java,v new revision: 1.17; previous revision: 1.16 /cvs/openide/masterfs/src/org/netbeans/modules/masterfs/Utils.java,v new revision: 1.3; previous revision: 1.2 /cvs/openide/masterfs/test/unit/src/org/netbeans/modules/masterfs/MasterFileObjectTestHid.java,v new revision: 1.17; previous revision: 1.16 |