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 precommit state and use the cache state to expire all precommits in the proving deadline cron job #1427

Merged
merged 2 commits into from
Oct 8, 2023

Conversation

aarshkshah1992
Copy link
Contributor

@aarshkshah1992 aarshkshah1992 commented Oct 5, 2023

Closes #1426.

See Idea: fix non caching mistake in filecoin-project/FIPs#771.

Copy link
Contributor

@ZenGround0 ZenGround0 left a comment

Choose a reason for hiding this comment

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

This looks great. I'd love to see an empirical measurement of gas reduction. Doing this in an integration test is probably too much effort but it should be within reach to set up a 2k devent, precommitted many sectors, let them expire and then measure cron gas on expiry before and after this change (tools here should help: https://github.com/FILCAT/gas-model/tree/main).

I suspect you will see really good numbers so it might be worth taking the extra time to demonstrate how much compute you are saving everyone with this change.

@anorth anorth added this pull request to the merge queue Oct 8, 2023
Merged via the queue into master with commit 55e3738 Oct 8, 2023
15 checks passed
@anorth anorth deleted the feat/cache-precommit-state branch October 8, 2023 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Optimise precommit expiry in the proving deadline cron job by caching precommit state
3 participants