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

Speed up loading of package details #69

Closed
buresdv opened this issue Mar 24, 2023 · 1 comment
Closed

Speed up loading of package details #69

buresdv opened this issue Mar 24, 2023 · 1 comment
Assignees
Labels
Wontfix This will not be worked on

Comments

@buresdv
Copy link
Owner

buresdv commented Mar 24, 2023

As it is now, when the user opens a detail screen, a brew info --json=v2 command is executed. As with all brew commands, it's excrutiatingly slow.

Possible fix:

  1. Each package has the file INSTALL_RECEIPT.json inside its folder. This file contains the JSON information that seems to be identical to whatever I'd get using the brew info --json=v2 command.
  2. INstead of executing the brew info --json=v2 command, read that info from this file
@buresdv buresdv self-assigned this Mar 24, 2023
@buresdv buresdv added the Enhancement New feature or request label Mar 24, 2023
@buresdv buresdv added Wontfix This will not be worked on and removed Enhancement New feature or request labels Mar 24, 2023
@buresdv
Copy link
Owner Author

buresdv commented Mar 24, 2023

This is not really applicable, because:

  1. Casks don't have this file
  2. Caveats are not included in this file
    This means that I would still have to run the brew info command anyway, so there are no gains to be made

@buresdv buresdv closed this as not planned Won't fix, can't repro, duplicate, stale Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Wontfix This will not be worked on
Projects
Status: Done
Development

No branches or pull requests

1 participant