Skip to content

Conversation

@kim
Copy link
Contributor

@kim kim commented Aug 6, 2025

Adds methods and free-standing functions to allow folds to stop at an upper
bound, by passing a range instead of only a start offset.

Expected complexity level and risk

1

Testing

When using iterators, the consumer can decide if and when to abort the
traversal. With folds, the only way would be to make the decoder return
an error, which is not always convenient.

Instead, allow folding over a range of transaction offsets.
@kim kim force-pushed the kim/commitlog/range-fold branch from 3e9c4a1 to 6e7331d Compare August 7, 2025 07:13
@kim kim requested review from Shubham8287 and gefjon August 7, 2025 08:42
@kim kim marked this pull request as ready for review August 7, 2025 08:44
@kim kim added this pull request to the merge queue Aug 8, 2025
Merged via the queue into master with commit 37c64c7 Aug 8, 2025
25 checks passed
@kim kim deleted the kim/commitlog/range-fold branch August 8, 2025 14:15
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.

4 participants