Feat/tensor compression clean#1
Open
mpb159753 wants to merge 3 commits into
Open
Conversation
Adds an opt-in per-row zstd compression path for the SimpleStorage manager <-> storage-unit data plane. The storage unit never invokes the compression backend; compression happens once on PUT (manager encode), decompression once on GET (manager decode). Configure via backend.SimpleStorage.compression in config.yaml or TQ_COMPRESSION_ALGORITHM/LEVEL/MIN_BYTES env vars. Implementation lives entirely in compression.py + a small Ext(6) branch in serial_utils.py + per-instance encoder/decoder threaded through ZMQMessage.serialize/deserialize. Module-level _encoder/_decoder are never rebound, so manager and SU colocated in the same process never share compression state. data_parser is incompatible with row-compressed PUT and is rejected at put_data entry. Signed-off-by: lynn <33576786+0lynnlin0@users.noreply.github.com> Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> Signed-off-by: mpb159753 <m.pb@msn.com>
Return raw input directly instead of creating a copy via bytes(). These functions serve as no-op backends when algorithm="none". Signed-off-by: mpb159753 <m.pb@msn.com>
Signed-off-by: 看我72遍 <m.pb@msn.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.