Get length of compressed stream so far without closing stream?
まだ誰も着手していません。
評価
調査の方向性
まず、TranscodingStreams の codec インターフェースと、issue で言及されている CodecX 実装を確認します。サポートされている操作で、継続中の圧縮を終了したり変更したりせずに、プレフィックスの圧縮後の長さを報告できるか確認します。実行可能なインターフェースを文書化するか、codec の制限を確認して例を示せば完了です。
索引モデルが issue の本文から書いたものです。
説明
I would like to get the length of the compressed stream up to now but without closing the stream or affecting continued compression. I understand most Codecs might not support this, given their internal block lengths etc, but maybe there are ways to get related/close to this behavior?
The use case is something like this:
- We have a very long string/stream which has been compressed already, C(s_long)
- We now have a set of N shorter strings S_shorts = [s1, ..., sN] and we want to calculate map(length, [C(s_long * s1), ..., C(s_long * sN)]) but without having to redo the whole C(s_long) compression for each of the shorter strings si (since calculating C(s_long) might be costly in time).
- Note that we only need the lengths of all the C(s_long * si), not their actual bytes.
Any ideas how this can be done as fast as possible? :)
Currently I basically do a Huffman coding/tree or dictionary-based compression by hand and can thus save the intermediate tree/dictionary between each consideration of the short strings, but it would be nice if there is a way to use more advanced compressors like the CodecX ones in the TranscodingStreams framework.
- 主要言語
- Julia
- スター
- 90
- フォーク
- 26
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
JuliaIO/TranscodingStreams.jl のほかの issue
-
Allow generic `DenseVector{UInt8}` as input/output対応中かも @nhz2 が 460 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
JuliaIO/TranscodingStreams.jl#247 · コメント 2 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
JuliaIO/TranscodingStreams.jl#246 · コメント 1 件 ·
-
Support libaec?オープン
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
JuliaIO/TranscodingStreams.jl#207 · コメント 2 件 ·
-
API for Bufferオープン
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
JuliaIO/TranscodingStreams.jl#202 · コメント 2 件 · リアクション 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
JuliaIO/TranscodingStreams.jl#188 ·
JuliaIO/TranscodingStreams.jl の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
-
question
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
brown-ccv/Chamber.jl#272 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
JuliaAstro/SolarPosition.jl#143 ·
-
distributions
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
JuliaBayes/Wren.jl#404 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
JuliaAI/MLJTransforms.jl#113 ·
メンテナーはふだん 1 日以内に返信