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

Allow configuration of default properties of blosc compressor. #44

Closed
wants to merge 3 commits into from

Conversation

joshmoore
Copy link

Migrating #42 for @pedson

The goal of this PR is to allow the user to set the number of threads used for blosc decompression on the auto-created Compressor objects during read operations.

This is done via CompressorFactory.BloscCompressor.defaultProperties.put("nthreads", 8);

This was the least invasive/modifying approach I could find (in conjunction with PR #41 for user defined compressor objects). However, it does expose the actual BloscCompressor class and the implementation of the map. I'd be happy to implement something more extensive keeps the class implementation private if the maintainers prefer.

I also only updated the nthreads property to pull from the defaultProperties map rather than the default constants. If this approach is acceptable, I can change the other properties to have the same behavior.

@joshmoore
Copy link
Author

Apologies for the noise. Wrong target repo caused by the use of a fork.

@joshmoore joshmoore closed this May 22, 2023
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.

2 participants