Selecting properties from Find-WinGetPackage may be extremely slow #5110
modejota
started this conversation in
PowerShell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm planning on developing a GUI for winget, so I've testing how to retrieve the data from the Powershell Module via JSON and CSV.
I've detected that selecting anything aside the ID and/or Name makes the command to run extremely slow. Results of a simple benchmark attached below. I've also tested it using a proper .ps1 script accessing the properties and creating objects manually with the same results.
Is it the x5 and x8/x10 slowdown normal? Is there any other way to fetch the required data significantly faster?
Sample benchmark:
System Information:
Beta Was this translation helpful? Give feedback.
All reactions