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

fix: isolate full and corgi packuments in packumentCache #369

Merged
merged 1 commit into from
May 7, 2024

Conversation

wraithgar
Copy link
Member

No description provided.

wraithgar added a commit to npm/cli that referenced this pull request May 7, 2024
This adds a new packument cache that is an instance of `lru-cache`.
It uses that package's ability to limit content based on size, and has
some multipliers based on research to mostly correctly approximate the
correlation between packument size and its memory usage.  It also limits
the total size of the cache based on the actual heap available.

Closes: #7276
Related: npm/pacote#369
wraithgar added a commit to npm/cli that referenced this pull request May 7, 2024
This adds a new packument cache that is an instance of `lru-cache`.
It uses that package's ability to limit content based on size, and has
some multipliers based on research to mostly correctly approximate the
correlation between packument size and its memory usage.  It also limits
the total size of the cache based on the actual heap available.

Closes: #7276
Related: npm/pacote#369
@wraithgar wraithgar marked this pull request as ready for review May 7, 2024 20:24
@wraithgar wraithgar requested a review from a team as a code owner May 7, 2024 20:24
@wraithgar wraithgar merged commit b19aacb into main May 7, 2024
17 checks passed
@wraithgar wraithgar deleted the gar/cache-isolation branch May 7, 2024 20:39
@github-actions github-actions bot mentioned this pull request May 7, 2024
lukekarrys pushed a commit that referenced this pull request May 8, 2024
🤖 I have created a release *beep* *boop*
---


## [18.0.6](v18.0.5...v18.0.6)
(2024-05-07)

### Bug Fixes

*
[`79441a5`](79441a5)
[#371](#371) clean up requires (#371)
(@wraithgar)
*
[`b19aacb`](b19aacb)
[#369](#369) isolate full and corgi
packuments in packumentCache (#369) (@wraithgar)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

2 participants