Skip to content

perf: only call pixi global completion functions when necessary#3477

Merged
Hofer-Julian merged 4 commits intoprefix-dev:mainfrom
Hofer-Julian:perf/global-completions-windows
Apr 2, 2025
Merged

perf: only call pixi global completion functions when necessary#3477
Hofer-Julian merged 4 commits intoprefix-dev:mainfrom
Hofer-Julian:perf/global-completions-windows

Conversation

@Hofer-Julian
Copy link
Copy Markdown
Contributor

@Hofer-Julian Hofer-Julian commented Apr 1, 2025

Fixes #3476

On Windows we never install completions, so let's also avoid the completion checks then

Also skip completions check for environment_in_sync.
This check is pretty expensive and unless users manually remove things in that directory, that check also isn't necessary.

On windows we never install completions, so let's also avoid the completion checks then
@Hofer-Julian Hofer-Julian requested a review from nichmor April 1, 2025 15:19
}

#[cfg(not(unix))]
pub(crate) async fn completions_sync_status(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

maybe we can add a small comment ( from the PR overview ) to mention that we never install completions on windows that's why we don't need to check it here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

@Hofer-Julian Hofer-Julian changed the title perf: skip pixi global completion functions on windows perf: only call pixi global completion functions when necessary Apr 2, 2025
@Hofer-Julian Hofer-Julian merged commit 0c8e23c into prefix-dev:main Apr 2, 2025
31 checks passed
@Hofer-Julian Hofer-Julian deleted the perf/global-completions-windows branch April 2, 2025 11:12
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.

pixi global list performance regression starting with version 0.44.0

2 participants