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

Tutorial: All you can Cache #7634

Merged
merged 14 commits into from
Sep 8, 2022
Merged

Tutorial: All you can Cache #7634

merged 14 commits into from
Sep 8, 2022

Conversation

qbzzt
Copy link
Contributor

@qbzzt qbzzt commented Aug 31, 2022

Description

When using rollups the cost of a byte in the transaction is a lot more expensive than the cost of a storage slot. Therefore, it makes sense to cache as much information as possible on chain.

In this article the developer learns how to create and use a caching contract in such a way that any parameter value that is likely to be used multiple times will be cached and available for use (after the first time) with a much smaller number of bytes, and how to write off chain code that uses this cache.

Related Issue

Closing: #7283

@vercel
Copy link

vercel bot commented Aug 31, 2022

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

Name Status Preview Updated
ethereum-org-website ✅ Ready (Inspect) Visit Preview Aug 31, 2022 at 3:49AM (UTC)

@github-actions github-actions bot added content 🖋️ This involves copy additions or edits review needed 👀 labels Aug 31, 2022
@gatsby-cloud
Copy link

gatsby-cloud bot commented Aug 31, 2022

Gatsby Cloud Build Report

ethereum-org-website-dev

🎉 Your build was successful! See the Deploy preview here.

Build Details

View the build logs here.

🕐 Build time: 35m

Copy link
Contributor

@jmcook1186 jmcook1186 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This great - thank you!

@qbzzt
Copy link
Contributor Author

qbzzt commented Sep 1, 2022

This great - thank you!

Thank you. I took a lot of work to write, but I think it will help people make the most of roll ups.

@minimalsm minimalsm merged commit 1f827e7 into ethereum:dev Sep 8, 2022
@corwintines corwintines mentioned this pull request Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content 🖋️ This involves copy additions or edits
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants