-
Notifications
You must be signed in to change notification settings - Fork 447
Open
Labels
📦 🤖 gnovmIssues or PRs gnovm relatedIssues or PRs gnovm related🌟 improvementperformance improvements, refactors ...performance improvements, refactors ...
Milestone
Description
Description
After trying to reduce the memory usage moving from maps to an LRU cache here (#780), I realized that packages set on cacheObjects are not expected to be evicted, causing problems if we use an LRU cache.
Possible Solution
We can store these packages on persistent storage using a special key like /tmp/[UUID]/oid:[OID] where [UUID] is a unique ID created per storage session (every time you initialise a store or purge it)
When purging cache calling ClearObjectCache we generate a new UUID and we remove all keys under the previous UUID /tmp/[UUID]
On every server restart, we remove all keys under /tmp
WDYT?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
📦 🤖 gnovmIssues or PRs gnovm relatedIssues or PRs gnovm related🌟 improvementperformance improvements, refactors ...performance improvements, refactors ...
Type
Projects
Status
Need lots of help
Status
Backlog