Skip to content

Reduced memory retention causing high CPU and memory usage - #348

Open
Harkarman wants to merge 1 commit into
wix:masterfrom
Harkarman:ISSUE-342
Open

Harkarman wants to merge 1 commit into
wix:masterfrom
Harkarman:ISSUE-342

Conversation

@Harkarman

@Harkarman Harkarman commented Jul 17, 2026

Copy link
Copy Markdown

Summary

Reduce long-lived memory retention in the Import Cost extension and calculation pipeline.

  • Dispose VS Code document/editor event subscriptions through the extension context.
  • Debounce document edits to avoid starting a full calculation on every keystroke.
  • Clear pending document and decoration timers during deactivation.
  • Release per-file emitters and cached decoration data after calculations complete or the extension deactivates.
  • Remove settled debounce promises from the in-memory key map.
  • Delete temporary Webpack entry files and close Webpack compilers after builds finish.

Close #342
I expect it will also close #341 , #340, #338, #331. Didn't check beyond that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Import Cost performance issue Memory leak

1 participant