MinaProtocol / mina

Mina is a cryptocurrency protocol with a constant size blockchain, improving scaling while maintaining decentralization and security.
https://minaprotocol.com
Apache License 2.0
1.99k stars 527 forks source link

Add buildkite functionality to persist and restore lagrange basis cache #15846

Open martyall opened 2 months ago

martyall commented 2 months ago

We are storing the results of the lagrange basis computations when running dev unit tests (see #15802). Currently the tests lazily populate the cache, so that the first time you need the basis you compute and every other time you load from disk. We lose the disk at the end of the run,.

We would like to investigate persisting and restoring this cache for the dev unit tests since these basically never change. Ideally the flow would be something like

NOTE: The total cache size is currently 8kb and not expected to grow over time.

martyall commented 1 month ago

depends on #15843