Skip to content

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