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

"winget list --name xy" executes VERY SLOW when using broad filter (for the first time?) #4701

Open
RobertK66 opened this issue Aug 4, 2024 · 2 comments
Labels
Area-Performance Issue related to CPU or memory performance Issue-Bug It either shouldn't be doing this or needs an investigation.

Comments

@RobertK66
Copy link

Brief description of your issue

when I execute "winget list" I do get a result with 376 entries. This command takes apr. 2.5 sec to execute and show.

when I execute "winget list --name My" I do get 4 lines and it takes apr. 4.5 sec.

when I execute "winget list --name Mi" I do get 134 lines (all containing Microsoft ;-) ). This took about 2:40 minutes to show the first time I called it. After the successful call the same command takes now apr. 10 sec. (Also if executed in new Command window)

when executing "winget list --name A" I never was able to get any result until now....

Note: the spinning '|' indicator in all cases stops after some seconds and a 'normal blinking console cursor' is shown for the rest of the time.

Steps to reproduce

  • open normal cmd window with 'run as admin'.
  • type "winget list --name A"

Expected behavior

there should a result be presented after some decent time.

Actual behavior

the example from "steps to reproduce" never gave any results after keeping the command window open for more than 15 minutes....

Environment

Windows-Paket-Manager v1.8.1911
Copyright (c) Microsoft Corporation. Alle Rechte vorbehalten.

Windows: Windows.Desktop v10.0.22631.3880
Systemarchitektur: X64
Paket: Microsoft.DesktopAppInstaller v1.23.1911.0
Copy link

github-actions bot commented Aug 4, 2024

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Aug 4, 2024
@RobertK66
Copy link
Author

RobertK66 commented Aug 4, 2024

Ok after authoring and reviewing this issue (and the hinted #2104, #855, #1259) the cmd "winget list --name A" now finished after 26 minutes 😄 with plausible 271 entries ....

Now a repeat of this executes in acceptable 6 seconds in the same session and about 40 seconds in a new command window....

I am not sure why this strange behavior exists but it seems that the name search does have some other source of basic data than the list without filter. At least a timeout with some hints about what could be wrong with the 'installed data' would help in the first case here...

@denelon denelon added Issue-Bug It either shouldn't be doing this or needs an investigation. Area-Performance Issue related to CPU or memory performance and removed Needs-Triage Issue need to be triaged labels Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Performance Issue related to CPU or memory performance Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

No branches or pull requests

2 participants