You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: env LOG2_PADDED_HEIGHT_METHOD for proving capability
A previous commit made calculation of log2(padded-height) about 4x slower for
ProofBuilder and ProverJob because it used a different calculation method. This
commit returns to the baseline method and speed, but enables runtime selection
via environment variable.
By default the log2(padded-height) is calculated using VmState::run().
A more accurate but slower way is to use VM::trace_execution_of_state().
This is typically about 4x slower.
And the fastest method is to skip running the program entirely. But
that option is only available when running unit tests.
These methods can be selected at runtime:
```
LOG2_PADDED_HEIGHT_METHOD=trace neptune-core <args>
LOG2_PADDED_HEIGHT_METHOD=run neptune-core <args>
LOG2_PADDED_HEIGHT_METHOD=skip cargo test <args>
```
0 commit comments