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

Simplify laziness of frames sequence #6

Merged
merged 1 commit into from
Jun 26, 2024
Merged

Conversation

Baptouuuu
Copy link
Member

Problem

Currently a message can be expressed either via a string or a file Content. When sent over the wire this message is chunked into a sequence of frames.

In order to work with large files the sequence of frames is forced to be lazy.

However this complexifies debugging the sequences when the message fits in memory.

Solution

Derive the kind of sequence to use from the message content chunk sequence (thanks to Sequence::prepend())

@Baptouuuu Baptouuuu added the enhancement New feature or request label Jun 26, 2024
@Baptouuuu Baptouuuu self-assigned this Jun 26, 2024
@Baptouuuu Baptouuuu merged commit cca1ae4 into develop Jun 26, 2024
9 checks passed
@Baptouuuu Baptouuuu deleted the simplify-laziness branch June 26, 2024 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant