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. #42

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

pedson
Copy link

@pedson pedson commented Apr 21, 2023

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.

@SabineEmbacher
Copy link
Collaborator

@pedson

Dear Patric,
for the time being, we have stopped further maintenance of the library.
The people at zarr-developers plan to take over further development on Java.
Please contact @joshmoore for this.
Best Regards
Sabine

@joshmoore
Copy link

Re-opened as zarr-developers#6

@MSanKeys963
Copy link

MSanKeys963 commented Jun 20, 2023

Hi everyone! 👋🏻

I've posted an update. Please see my comment → #41 (comment).

Thank you @pedson, @joshmoore and @SabineEmbacher.

Best,
Sanket Verma
Zarr Community Manager

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.

4 participants