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

Package cache #8

Open
ThomasNieto opened this issue Jul 25, 2023 · 0 comments
Open

Package cache #8

ThomasNieto opened this issue Jul 25, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@ThomasNieto
Copy link
Member

Currently it takes about 3.5-5 seconds to run apt-cache search . --full and parse all the packages. To reduce the time it takes, implement a package cache.

  • Derive AptProviderInfo from ProviderInfo
  • Create dictionary property to store package cache
  • Create timestamp to keep track apt-get package cache apt-config dump | grep Dir::Cache::srcpkgcache file location
  • Discover package names with apt-cache pkgnames
  • If srcpkgcache updates then rebuild package cache
@ThomasNieto ThomasNieto added the enhancement New feature or request label Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant