Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proposal: chunked encoding #2

Open
figroc opened this issue Aug 31, 2021 · 0 comments
Open

proposal: chunked encoding #2

figroc opened this issue Aug 31, 2021 · 0 comments
Labels
doc Improvements or additions to documentation feat New feature or request

Comments

@figroc
Copy link
Member

figroc commented Aug 31, 2021

The TLV structure facilitates efficient implementation of the decoding process. On the other hand, it requires the encoder to know the size of the value in advance. This constraint can be detrimental to the encoder when encoding large data blocks and streaming data. The chunked encoding scheme is introduced to balance between the encoder and the decoder. Even the transmission protocol is able to transmit data in chunks, the chunked encoding feature can still save the splicing information which is required for concatenation to be encoded.

Spec: draft-02


TLV 结构有利于解码器的高效实现,但要求编码器预先得知值的大小。这个约束在大数据块编码和流式编解码时会对编码器不利,因此引入分块编码方式在编解码器之间进行平衡。即使在传输协议存在分块传输能力时,分块编码特性仍然能够节省用于分片拼接所需的拼接编码信息。

编解码器规范见 draft-02

@figroc figroc added doc Improvements or additions to documentation feat New feature or request labels Aug 31, 2021
@figroc figroc changed the title 分块编码特性 proposal: chunked encoding Sep 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Improvements or additions to documentation feat New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant