Skip to content

dotnet-suggest PowerShell shim slows down every pwsh startup #2897

Open

Description

@azchohfi

The PowerShell shim runs dotnet-suggest list every time the profile loads. On my machine that adds 600 to 900 ms to every pwsh start (Windows, pwsh 7.6, median of 15 runs). The Get-Command check adds about 60 ms more.

dotnet-suggest list only reads ~/.dotnet-suggest-registration.txt and lists the files in ~/.dotnet/tools. The shim can read those directly without starting a process. A quick version of that takes around 55 ms and returns the same list.

I'll send a PR for the PowerShell shim. The bash and zsh shims spawn the same process and could get the same fix later.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions