Blosc / Blosc/c-blosc2

Create new blosc2_schunk_decompress_chunk_ctx()

Open
#147 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

api enhancement help wanted
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.