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

feat: add max cached states env var #4945

Merged
merged 2 commits into from
Mar 1, 2024

Conversation

agostbiro
Copy link
Member

@agostbiro agostbiro commented Feb 29, 2024

Add __EDR_MAX_CACHED_STATES environment variable to allow changing the default value of 10 to improve performance. Increasing the value causes higher memory usage and may lead to slow downs if the machine runs out of memory and starts swapping.

Repo Improvement over HH2.20 with cache size = 10 (default) Improvement over HH2.20 with cache size = 2048 RAM usage with cache size = 2048
openzeppelin-contracts 10% 28% 6GB
rocketpool 51% 60% 6GB
uniswap-v3-core 3.5% 10% 4GB

Copy link

changeset-bot bot commented Feb 29, 2024

⚠️ No Changeset found

Latest commit: c56f1a6

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Feb 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hardhat ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 1, 2024 10:20am

@agostbiro agostbiro assigned agostbiro and unassigned kanej Feb 29, 2024
@agostbiro agostbiro added no changeset needed This PR doesn't require a changeset type:improvement and removed status:triaging labels Feb 29, 2024
@agostbiro agostbiro merged commit e2acdc5 into main Mar 1, 2024
42 checks passed
@agostbiro agostbiro deleted the edr/feat/max-cached-state-env-var branch March 1, 2024 12:31
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
no changeset needed This PR doesn't require a changeset type:improvement
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants