Editor hang/poor performance with a large number of tests in a file #170493
Labels
bug
Issue identified by VS Code Team member as probable bug
freeze-slow-crash-leak
VS Code crashing, performance, freeze and memory leak issues
insiders-released
Patch has been released in VS Code Insiders
testing
Built-in testing support
verified
Verification succeeded
Milestone
I'm investigating some performance issues in Dart when you have a large number of tests in a single file. Many of these issues are in the Dart extension, but while working on it I've been seeing a few bad hands in the editor that I think may be a VS Code issue. It seems to happen during
syncDecorations
which I suspect are related to the test icons in the gutter.The test file I'm using has approximately 2,500 tests in the file.
Here's an export of the profile from the dev tools:
slow_decorations.json.zip
Note: I can't give precise repro steps using the Dart extension right now because I'm still making performance improvements (if you try to reproduce this with the published version of the extension you'll see significant performance issues in the extension that I'm working on), but if this profile isn't helpful on its own and you need more, I may be in a position to publish a pre-release version with some of my fixes soon.
@connor4312 FYI - I don't know if this is general decorations code or test-specific, but I think the anonymous function showing up a lot in the profile relates to this code here:
vscode/src/vs/workbench/contrib/testing/browser/testingDecorations.ts
Line 199 in 2377c7a
The text was updated successfully, but these errors were encountered: