-
Notifications
You must be signed in to change notification settings - Fork 18
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
Dependency keys are not cleared on LRU eviction #497
Comments
Extensive testing in our app gave the following results for active usage scenario (with 5 iterations):
|
Benchmark and repro: https://github.com/vladar/optimism-deps-fix |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks like there is a minor "leak" in optimism even with LRU enabled: entries of
depsByKey
always stay in memory even after all optimismEntries
corresponding to the given key are cleared.So this
key
+ an emptydep
Set are "leaking":optimism/src/dep.ts
Lines 31 to 35 in 4301eac
In my testing it also survives Apollo eviction / GC, even
cache.gc({ resetResultCache: true })
The text was updated successfully, but these errors were encountered: