Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Inefficient encoding of key/values in Layer

未关闭
#44 1 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
30/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
领域
data

调研方向

首先查看 vector tile 规范中 Layer 和 Value 的编码定义。将提议的按类型打包字段与当前的混合类型表示进行比较,包括键/值顺序和兼容性;完成的要求是达成一致的编码设计,而不是进行直接编辑。

由索引模型根据 Issue 内容生成。

描述

3.0 Specification

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 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

mapbox/vector-tile-spec 的其他 Issue

查看 mapbox/vector-tile-spec 的全部 Issue

相似的 Issue

更多 Data Engineering Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。