Skip to content

Explorer: Reduce call count of isEqualOrParent #45972

Closed
@jrieken

Description

@jrieken

Similar to #45971. There are 500+ calls to isEqualOrParent and given that the explorer model is already a tree-data-model I understand why...

562 ->     at Object.isEqualOrParent (file:///Users/jrieken/Code/vscode/out/vs/base/common/paths.js:298:19)
    at Object.isEqualOrParent (file:///Users/jrieken/Code/vscode/out/vs/base/common/resources.js:14:26)
    at FileStat.find (file:///Users/jrieken/Code/vscode/out/vs/workbench/parts/files/common/explorerModel.js:280:52)
    at Model.findClosest (file:///Users/jrieken/Code/vscode/out/vs/workbench/parts/files/common/explorerModel.js:64:33)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions