Extend `EncodedChunk` abstraction to write side

Open
#129 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Quiet
Tech stack
python, rust

Research direction

Start by comparing the mentioned Array, AsyncArray, EncodedChunk, ChunkEncoder, and CodecChain abstractions and how chunk encoding should remain independent of a store. Resolve whether encoding belongs on a separate encoder or CodecChain, and define the sync and async API that satisfies the issue.

Written by the indexing model from the issue text.

Description

Have

Array.encode_chunk() -> EncodedChunk

which takes in chunk indices and a typed, decoded array (#47).

Or rather, because chunk encoding will be either sync (current thread) or async (on a Rust thread pool), maybe have a separate ChunkEncoder class.

Or, just put encoding onto CodecChain, so we have CodecChain.encode and CodecChain.encode_async.

  • We probably want a way to encode/decode chunks that is independent of a store.
  • It seems a little messy to put sync/async methods for chunk encoding onto Array/ AsyncArray, when the sync/async bridge of chunk encoding describes where the CPU bound work is happening, not what kind of IO is happening
Dominant language
Python
Stars
52
Forks
3
Avg merge
36m
Merged PRs (30d)
5

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from developmentseed/zarrista

All issues in developmentseed/zarrista

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.