[PR #15203] [MERGED] Lazy load CommandPalette and AboutDialog #30493

Open
opened 2026-01-31 09:41:10 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/15203
Author: @lhecker
Created: 4/18/2023
Status: Merged
Merged: 4/19/2023
Merged by: @DHowett

Base: mainHead: dev/lhecker/lazy-command-palette


📝 Commits (2)

  • 83bb7e0 Lazy load CommandPalette and AboutDialog
  • bf4a9c6 Address feedback

📊 Changes

9 files changed (+76 additions, -67 deletions)

View changed files

📝 src/cascadia/LocalTests_TerminalApp/TabTests.cpp (+3 -3)
📝 src/cascadia/TerminalApp/AboutDialog.cpp (+2 -1)
📝 src/cascadia/TerminalApp/AboutDialog.h (+2 -3)
📝 src/cascadia/TerminalApp/AboutDialog.idl (+0 -2)
📝 src/cascadia/TerminalApp/AppActionHandlers.cpp (+8 -7)
📝 src/cascadia/TerminalApp/TabManagement.cpp (+8 -6)
📝 src/cascadia/TerminalApp/TerminalPage.cpp (+47 -42)
📝 src/cascadia/TerminalApp/TerminalPage.h (+2 -1)
📝 src/cascadia/TerminalApp/TerminalPage.xaml (+4 -2)

📄 Description

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

Validation Steps Performed

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

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/15203 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 4/18/2023 **Status:** ✅ Merged **Merged:** 4/19/2023 **Merged by:** [@DHowett](https://github.com/DHowett) **Base:** `main` ← **Head:** `dev/lhecker/lazy-command-palette` --- ### 📝 Commits (2) - [`83bb7e0`](https://github.com/microsoft/terminal/commit/83bb7e06e24824462d031e573b39d6bc30cf8bf0) Lazy load CommandPalette and AboutDialog - [`bf4a9c6`](https://github.com/microsoft/terminal/commit/bf4a9c67d9e2a31836f669c9c9d9bbfcdc5faf4c) Address feedback ### 📊 Changes **9 files changed** (+76 additions, -67 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/LocalTests_TerminalApp/TabTests.cpp` (+3 -3) 📝 `src/cascadia/TerminalApp/AboutDialog.cpp` (+2 -1) 📝 `src/cascadia/TerminalApp/AboutDialog.h` (+2 -3) 📝 `src/cascadia/TerminalApp/AboutDialog.idl` (+0 -2) 📝 `src/cascadia/TerminalApp/AppActionHandlers.cpp` (+8 -7) 📝 `src/cascadia/TerminalApp/TabManagement.cpp` (+8 -6) 📝 `src/cascadia/TerminalApp/TerminalPage.cpp` (+47 -42) 📝 `src/cascadia/TerminalApp/TerminalPage.h` (+2 -1) 📝 `src/cascadia/TerminalApp/TerminalPage.xaml` (+4 -2) </details> ### 📄 Description 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 ## Validation Steps Performed * Ctrl+Shift+P opens command palette ✅ * Context menu opens command palette ✅ * Context menu opens about dialog ✅ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:41:10 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#30493