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

Opt(stream): Use z.Buffer to stream data #1606

Merged
merged 19 commits into from
Nov 25, 2020
Merged

Conversation

manishrjain
Copy link
Contributor

@manishrjain manishrjain commented Nov 25, 2020

Stream.Send now sends out z.Buffer instead of pb.KVList. z.Buffer marshals each KV as a separate slice. This significantly reduces the memory requirement by the Stream framework. Stream no longer uses z.Allocator or tries to put pb.KV struct on the Allocator for memory safety reasons.

Bring back the z.AllocatorPool for table.Builder.

This change is Reviewable

@manishrjain manishrjain changed the title Use z.Buffer to stream Opt(stream): Use z.Buffer to stream data Nov 25, 2020
@manishrjain manishrjain merged commit ab8b5d9 into master Nov 25, 2020
@manishrjain manishrjain deleted the mrjn/stream-buffer branch November 25, 2020 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants