Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Make use of statefulMap instead. #329

Closed
wants to merge 1 commit into from
Closed

Conversation

He-Pin
Copy link
Member

@He-Pin He-Pin commented Jan 27, 2024

Motivation:

Make use of statefulMap instead.

@He-Pin He-Pin requested a review from mdedetrich January 27, 2024 07:45
}
.statefulMap(() => 0L)((cumulativeLength, bytes) =>
(cumulativeLength + bytes.length, Chunk(bytes, cumulativeLength)),
_ => None)
Copy link
Member Author

@He-Pin He-Pin Jan 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These three flows can be optimized with a single statefulmap I think , but leave that for another pr.

@He-Pin He-Pin closed this Jan 27, 2024
@He-Pin He-Pin deleted the statefulMapConcat branch January 27, 2024 08:03
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