Create new blosc2_schunk_decompress_chunk_ctx()
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 584
- Forks
- 113
- PR merge metrics
- No merged PRs in 30d
Description
The existing blosc2_schunk_decompress_chunk() function uses the internal context associated with the superchunk for decompressing the specified chunk. However, reusing the same context is intrinsically thread unsafe.
It would be nice to add another blosc2_schunk_decompress_chunk_ctx() function where the user can pass a different context per thread, so that it can be thread safe.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating blosc2_schunk_decompress_chunk() and the context-management code it uses, then inspect the public API declarations and existing decompression tests. The change is complete when a context-accepting counterpart is exposed and its behavior supports separate contexts for concurrent callers without relying on the superchunk's shared context.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100