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

Cache registry data for PkgServer registries over Pkg invocations #2438

Merged
merged 3 commits into from
Mar 23, 2021

Conversation

KristofferC
Copy link
Member

There was already a cache in place that cached parsing of TOML files.
However, many other parts of the registry handling (like uncompressing the version ranges) were not. In the future, we want to move to keep the registry in its tarred form which means that re-reading it will be expensive, so let's cache it instead.

This takes for example the time to add Plots over and over from 234ms to 150ms.

Ref #2435, #2431

There was already a cache in place that cached parsing of TOML files.
However, many other parts of the regsitry handling (like uncompressing the version ranges) was not.
In the future we want to move to keeping the registry in its tarred form which means that re-reading
it will be expensive, so let's cache it instead.

This takes for example the time to add Plots over and over from 234ms to 150ms.
…tuations where the original cached registry is deleted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant