Feature request: `Async` codec
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- julia
- 领域
- data, performance
调研方向
首先检查 TranscodingStreams 的 codec 接口以及现有解压和压缩 codec 的行为。定义 Async wrapper 将如何协调其输入、内部缓冲区和输出,同时确保转码在另一个 task 中运行。当所提出的 codec 能够与任意 TranscodingStreams codec 一起工作,并保持预期的 stream 行为时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
As far as I can tell, TranscodingSteams (TS) is currently mostly used for de/compression codecs, which are quite CPU-intensive. In this case it would be beneficial to allow the de/compression to happen in a separate thread concurrently.
I think this can be solved by having an Async codec that wraps any TS, such that the underlying stream's transcoding happens in another thread. More specifically, Async could carry an internal buffer B along with its input (I) and output (O) buffers. When O runs dry, it will copy data from B to O, then schedule the transcoding from I to B.
I believe this codec should be in TS and not a separate package because:
- It's near-universally useful for users of TS
- The
Asynccodec might have to reach into TS's internals for efficiency, to make sure the underlying TS really does run its transcoding in a different task.
- 主要语言
- Julia
- 星标
- 90
- 派生
- 26
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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 一周以上 新手友好度 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 一周以上 新手友好度 35/100
JuliaIO/TranscodingStreams.jl#202 · 2 条评论 · 1 个 reaction ·
-
难度 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 天内回复