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

One more take at streaming #82

Merged
merged 7 commits into from
Sep 18, 2024
Merged

One more take at streaming #82

merged 7 commits into from
Sep 18, 2024

Conversation

opqdonut
Copy link
Member

Continuing from @bsless 's excellent work. Adding some polish &
documentation. I think this is now shippable.

closes #53 #55 #62

fixes #61 #59 #52 #42

bsless and others added 7 commits May 21, 2021 10:15
read-values dispatches to the ReadValues protocol. It returns an
iterator via an ObjectReader derived from the supplied mapper.
The returned iterator is reified in a manner similar to Eduction to
support reduction and sequence construction over it.

write-values relies on two protocols - WriteValues for the output
destination, similarly to WriteValue, and WriteAll for the type being
written, which can be an array or an Iterable.
It writes an array or iterable to destination via a SequenceWriter.
Importantly, write-values distables automatic flushing on serialization
to get good performance.
@opqdonut opqdonut merged commit a3083e8 into master Sep 18, 2024
4 checks passed
@opqdonut opqdonut deleted the streaming branch September 18, 2024 09:43
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.

write-value closes the object
3 participants