Skip to content

CmdPal: fix a perf regression loading pages#39415

Merged
zadjii-msft merged 1 commit intomainfrom
dev/migrie/b/double-init-on-uithread
May 16, 2025
Merged

CmdPal: fix a perf regression loading pages#39415
zadjii-msft merged 1 commit intomainfrom
dev/migrie/b/double-init-on-uithread

Conversation

@zadjii-msft
Copy link
Member

This was especially noticeable with the icons extension.

Turns out in #39051, when I was experimenting with getting AoT clean, I accidentally called this twice. Then we actually committed that straight up.

This PR reverts that. It also moves a similar case where we were initializing all the tags on the UI thread. That's wrong too - we need to fetch properties off the UI thread, then update the list on the UI thread.

Closes nothing, I didn't file this yet.

This was especially noticable with the icons extension.

Turns out in #39051, when I was experimenting with getting AoT clean,
i accidentally called this twice. Then we actually commited that
straight up.

This PR reverts that. It also moves a similar case where we were
initializing all the tags on the UI thread. That's wrong too - we need
to fetch properties off the UI thread, then update the list on the UI
thread.

Closes nothing, I didn't file this yet.
@zadjii-msft zadjii-msft added the Product-Command Palette Refers to the Command Palette utility label May 14, 2025
@zadjii-msft zadjii-msft mentioned this pull request May 15, 2025
22 tasks
@zadjii-msft zadjii-msft added the Needs-Review This Pull Request awaits the review of a maintainer. label May 15, 2025
async () =>
() =>
{
// bool f = await viewModel.InitializeCommand.ExecutionTask.;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's all this then eh

@zadjii-msft zadjii-msft merged commit c965675 into main May 16, 2025
16 checks passed
@zadjii-msft zadjii-msft deleted the dev/migrie/b/double-init-on-uithread branch May 16, 2025 15:47
@yeelam-gordon yeelam-gordon removed the Needs-Review This Pull Request awaits the review of a maintainer. label Jun 9, 2025
@yeelam-gordon yeelam-gordon added this to the PowerToys 0.92 milestone Jun 9, 2025
sadirano pushed a commit to sadirano/PowerToys that referenced this pull request Jun 10, 2025
This was especially noticable with the icons extension.

Turns out in microsoft#39051, when I was experimenting with getting AoT clean,
i accidentally called this twice. Then we actually commited that
straight up.

This PR reverts that. It also moves a similar case where we were
initializing all the tags on the UI thread. That's wrong too - we need
to fetch properties off the UI thread, then update the list on the UI
thread.

Closes nothing, I didn't file this yet.
yeelam-gordon pushed a commit that referenced this pull request Jun 20, 2025
This was especially noticable with the icons extension.

Turns out in #39051, when I was experimenting with getting AoT clean,
i accidentally called this twice. Then we actually commited that
straight up.

This PR reverts that. It also moves a similar case where we were
initializing all the tags on the UI thread. That's wrong too - we need
to fetch properties off the UI thread, then update the list on the UI
thread.

Closes nothing, I didn't file this yet.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Product-Command Palette Refers to the Command Palette utility

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants