[PR #7978] Move jumplist creation to background thread #27051

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

Original Pull Request: https://github.com/microsoft/terminal/pull/7978

State: closed
Merged: Yes


Summary of the Pull Request

Move jumplist creation to a background thread, it does not need to be on the main thread

Reference

#7791

PR Checklist

Detailed Description of the Pull Request / Additional comments

We were not using the HRESULT return value of UpdateJumplist anywhere, so I changed its return type to winrt::fire_and_forget instead. Also replaced all RETURN_IF_FAILED calls in the function to THROW_IF_FAILED to accommodate the change in return type.

Validation Steps Performed

Tracing with a release build:
perf

**Original Pull Request:** https://github.com/microsoft/terminal/pull/7978 **State:** closed **Merged:** Yes --- <!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> ## Summary of the Pull Request Move jumplist creation to a background thread, it does not need to be on the main thread ## Reference #7791 <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist * [x] Closes #7791 * [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [x] I work here * [ ] Tests added/passed * [ ] Documentation updated. If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx * [ ] Schema updated. <!-- Provide a more detailed description of the PR, other things fixed or any additional comments/features here --> ## Detailed Description of the Pull Request / Additional comments We were not using the `HRESULT` return value of `UpdateJumplist` anywhere, so I changed its return type to `winrt::fire_and_forget` instead. Also replaced all `RETURN_IF_FAILED` calls in the function to `THROW_IF_FAILED` to accommodate the change in return type. <!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well --> ## Validation Steps Performed Tracing with a release build: <img width="791" alt="perf" src="https://user-images.githubusercontent.com/26824113/96631760-bf85ea00-12e4-11eb-8da7-d16fb5c45b9b.png">
claunia added the pull-request label 2026-01-31 09:19:41 +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#27051