Skip to content
This repository has been archived by the owner on Mar 14, 2021. It is now read-only.

Implement caching #1

Open
1 of 3 tasks
laughedelic opened this issue Aug 19, 2017 · 3 comments
Open
1 of 3 tasks

Implement caching #1

laughedelic opened this issue Aug 19, 2017 · 3 comments
Assignees

Comments

@laughedelic
Copy link
Owner

laughedelic commented Aug 19, 2017

All the __suggest_* functions use some output from brew and some of those commands are quite slow. It doesn't cache and every time you want to complete a formula name, it will run again.

  • search if brew has some internal caching that could be used here
  • write some cache files in XDG paths? how/when to invalidate them?
  • can brew update be turned off on such commands? or can we hook to it to update the cache?
@laughedelic
Copy link
Owner Author

Note: there's something in ~/Library/Caches/Homebrew/desc_cache.json

@laughedelic
Copy link
Owner Author

It seems that desc_cache.json got deprecated, so the current cache lookup doesn't work now.

@benedictleejh
Copy link

Just thought I'd leave a comment here noting that ~/Library/Caches/Homebrew/descriptions.json that seems to contain formulae names and their descriptions. A quick search of Homebrew's repo suggest that it functions as a cache for Homebrew.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants