Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: improve signed_commits function in blitzar_metadata_table m…
…odule (#310) # Rationale for this change The `signed_commits` function in the `blitzar_metadata_table` module used a counter and two mutable vectors to separate the commitments coming from Blitzar's `vlen_msm` function. Though this worked it was not efficient. This PR improves the `signed_commits` function by utilizing chunking of the input commitment vector. Performance of the `signed_commits` function improved `1.9x` with this change, but this function only contributes a statistically insignificant amount of time to the overall commitment computation. This PR addresses cleaner, or efficient code, over performance gains. # What changes are included in this PR? - `signed_commits` is refactored to avoid using two mutable vectors and a counter. # Are these changes tested? Yes
- Loading branch information