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 swept deposits #3811

Merged
merged 3 commits into from
Apr 24, 2024
Merged

Cache swept deposits #3811

merged 3 commits into from
Apr 24, 2024

Conversation

lukasz-zimnoch
Copy link
Member

The current logic always fetches swept deposits from the chain using Ethereum RPC server. This can be optimized. Swept deposits are final and no further changes occur regarding their state. That means swept deposits can be cached. This allows reducing network load and speeding up processed that needs to check a large number of deposits (e.g. deposit sweep and moving funds proposal generators). We use a time cache to evict unused keys over time and optimize memory consumption.

The current logic always fetches swept deposits from the chain using
Ethereum RPC server. This can be optimized. Swept deposits are final
and no further changes occur regarding their state. That means swept
deposits can be cached. This allows reducing network load and speeding
up processed that needs to check a large number of deposits (e.g. deposit
sweep and moving funds proposal generators). We use a time cache
to evict unused keys over time and optimize memory consumption.
@lukasz-zimnoch lukasz-zimnoch merged commit 8c2fc66 into main Apr 24, 2024
28 checks passed
@lukasz-zimnoch lukasz-zimnoch deleted the cache-swept-deposits branch April 24, 2024 11:06
@lukasz-zimnoch lukasz-zimnoch added this to the v2.1.0 milestone Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants