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

Compress buffers immediately before writing out #42

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

aliddell
Copy link
Member

Previous workflow was to use n threads to compress n buffers, then once this was done, use n threads again to write n buffers out to disk (or to S3). New workflow is to use compress and write each buffer sequentially in the same thread worker, so that, in principle, a single chunk can be compressed and written out before another chunk begins compressing. This should reduce thread synchronization overhead.

@aliddell aliddell requested a review from jeskesen January 14, 2025 17:57
@aliddell aliddell force-pushed the compress-and-flush branch 6 times, most recently from 30acc34 to 98b48de Compare January 15, 2025 13:42
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