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

Reuse module cache across transactions and ledgers #4577

Open
graydon opened this issue Dec 16, 2024 · 0 comments
Open

Reuse module cache across transactions and ledgers #4577

graydon opened this issue Dec 16, 2024 · 0 comments
Assignees

Comments

@graydon
Copy link
Contributor

graydon commented Dec 16, 2024

This is a broad issue that touches on both stellar-core and soroban: to attempt to make the module cache in soroban -- that stores contracts intheir translated / ready-to-run form -- retain its content and be reused across transactions, and even across ledgers. Doing so will significantly lower costs and increase throughput.

In the past this has been blocked on figuring out a suitable cost and fee model for cache misses and (re-)population events. Recently we've been considering a simplified approach where all live (non-archived) modules are assumed to be in cache at all times, so fees only need to be charged at upload or archival-restoration.

We have preliminary prototypes of this working, but there are a lot of details to work out still.

@graydon graydon self-assigned this Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant