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

Add property for number of threads to blosc compressor. #4

Merged
merged 1 commit into from
May 23, 2023

Conversation

joshmoore
Copy link
Member

@joshmoore joshmoore commented May 22, 2023

Migrate bcdev#41 for @pedson

Add a property in the blosc compressor map for the number of threads argument passed to the blosc dll. This PR will only affect write operations where the user creates their own compressor as this is a fairly straighforward change.

Usage: CompressorFactory.create("blosc", "cname", "zstd", "clevel", 1, "nthreads", 4);

A second PR will contain a further update that allows for setting the number of threads when a read operation is creating the compressor automatically. This is slightly more invasive and could be accomplished in more than one way.

@joshmoore
Copy link
Member Author

Thanks, @melissalinkert. I'll get this merged and then move to the next one.

@joshmoore joshmoore merged commit d4ed22c into zarr-developers:main May 23, 2023
@joshmoore joshmoore deleted the blosc-multithread branch May 23, 2023 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.

3 participants