Skip to content

Lazy load CommandPalette and AboutDialog - #15196

Merged
microsoft-github-policy-service[bot] merged 1 commit into
dev/lhecker/fix-peasant-active-windowfrom
dev/lhecker/lazy-command-palette
Apr 18, 2023
Merged

microsoft-github-policy-service[bot] merged 1 commit into
dev/lhecker/fix-peasant-active-windowfrom
dev/lhecker/lazy-command-palette

Conversation

@lhecker

@lhecker Leonard Hecker (lhecker) commented Apr 17, 2023 •

Copy link
Copy Markdown
Member

This sets x:Load to false for the two elements.
On my system, with Windows Defender disabled, this reduces CPU
usage by 15ms and the visual delay during launch by 40ms.

Part of #5907

PR Checklist

  • Ctrl+Shift+P opens command palette ✅
  • Context menu opens command palette ✅
  • Context menu opens about dialog ✅

@lhecker Leonard Hecker (lhecker) added Area-Performance Performance-related issue Product-Terminal The new Windows Terminal. labels Apr 17, 2023
@zadjii-msft Mike Griese (zadjii-msft) added the AutoMerge Marked for automatic merge by the bot when requirements are met label Apr 18, 2023
@microsoft-github-policy-service
microsoft-github-policy-service Bot merged commit 2ae3c9c into dev/lhecker/fix-peasant-active-window Apr 18, 2023
@microsoft-github-policy-service
microsoft-github-policy-service Bot deleted the dev/lhecker/lazy-command-palette branch April 18, 2023 16:23
@lhecker
Leonard Hecker (lhecker) restored the dev/lhecker/lazy-command-palette branch April 18, 2023 16:40
@lhecker

Copy link
Copy Markdown
Member Author

This PR was accidentally merged into my other (stacked) PR. I've reopened this one here: #15203 (same commit hash).

Dustin L. Howett (DHowett) pushed a commit that referenced this pull request Apr 21, 2023
Fixes a crash when pressing a keybinding in the settings tab. 

Regressed in #15196.

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

Labels

Area-Performance Performance-related issue AutoMerge Marked for automatic merge by the bot when requirements are met Product-Terminal The new Windows Terminal.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants