Inefficient encoding of key/values in Layer
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 30/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 领域
- data
调研方向
首先查看 vector tile 规范中 Layer 和 Value 的编码定义。将提议的按类型打包字段与当前的混合类型表示进行比较,包括键/值顺序和兼容性;完成的要求是达成一致的编码设计,而不是进行直接编辑。
由索引模型根据 Issue 内容生成。
描述
They keys and values use non-packed repeated fields which is inefficient compared to packed repeated fields. In addition the values are each in its own message which needs extra space for the length header. If the values are small integers that could otherwise be encoded in a single byte, this can easily mean they need six times as much space as would be needed otherwise (Value message length + Value message wire type + Value message field number + Layer message wire type + Layer message field number + the value itself).
Unfortunately this can't be changed easily, because the values can be of different types. One option would be to have a repeated string string_value [packed=true], repeated float float_value [packed=true], etc. in the Layer message. But this would mean reordering the keys or having multiple sets of keys for the different types.
- 主要语言
- 没有语言数据
- 星标
- 1k
- 派生
- 213
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
mapbox/vector-tile-spec 的其他 Issue
-
难度 5/5 一周以上 新手友好度 25/100
mapbox/vector-tile-spec#157 ·
-
难度 5/5 一周以上 新手友好度 20/100
mapbox/vector-tile-spec#153 ·
-
难度 5/5 一周以上 新手友好度 25/100
mapbox/vector-tile-spec#149 ·
-
Typo in §4.4未关闭
难度 1/5 1 小时以内 新手友好度 55/100
mapbox/vector-tile-spec#148 ·
-
难度 5/5 一周以上 新手友好度 20/100
mapbox/vector-tile-spec#145 · 2 条评论 · 1 个 reaction ·
查看 mapbox/vector-tile-spec 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
ecmwf/WeatherGenerator#2893 ·
维护者通常 1 天内回复
-
area:life-tracking area:ui bug copy effort:low model:light plan planner:gpt-6-1-sol ux
难度 2/5 1-3 小时 新手友好度 92/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
-
难度 2/5 1-3 小时 新手友好度 85/100
infiniflow/ragflow#20624 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复