Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find-Module is taking 50x longer than expected #257

Open
3 tasks done
96malhar opened this issue Aug 3, 2023 · 1 comment
Open
3 tasks done

Find-Module is taking 50x longer than expected #257

96malhar opened this issue Aug 3, 2023 · 1 comment

Comments

@96malhar
Copy link

96malhar commented Aug 3, 2023

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Steps to reproduce

Example Command - Measure-Command { Find-Module AWSPowerShell } | Select-Object -ExpandProperty totalseconds

Timeframes on 8/3/2023
-1:20 PM - 3:40 PM PST +

Expected behavior

The `Find-Module` command should complete within 2 seconds.

Actual behavior

The `Find-Module` command takes upto 80 seconds to complete.

Error details

No response

Environment data

Name                           Value
----                           -----
PSVersion                      7.3.4
PSEdition                      Core
GitCommitId                    7.3.4
OS                             Microsoft Windows 10.0.19045
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0


### Version

PowerShell 7.3.4

### Visuals

_No response_
@o-l-a-v
Copy link

o-l-a-v commented Mar 14, 2024

Use Microsoft.PowerShell.PSResourceGet cmdlet Find-PSResource instead, it's more performant.

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

No branches or pull requests

2 participants