Skip to content

perf: remove epoch heights allocation#3113

Open
GarmashAlex wants to merge 1 commit intoProvableHQ:stagingfrom
GarmashAlex:perf/remove-epoch-heights-vec
Open

perf: remove epoch heights allocation#3113
GarmashAlex wants to merge 1 commit intoProvableHQ:stagingfrom
GarmashAlex:perf/remove-epoch-heights-vec

Conversation

@GarmashAlex
Copy link
Copy Markdown

Previously, load_epoch_provers allocated a Vec of block heights solely to support cfg_iter!, even though the range itself can be iterated in parallel. This added an unnecessary allocation and pass during ledger startup.

Replaced the intermediate Vec allocation with direct range iteration using cfg_into_iter!, keeping the same behavior while removing the extra allocation.

Signed-off-by: GarmashAlex <garmasholeksii@gmail.com>
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.

1 participant