TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

JSON Compression by Rotating Data 90°

4 点作者 sfeather将近 9 年前

6 条评论

malctheoracle将近 9 年前
For those that assumed the compression was all about the pipe - here is the follow-up.<p><a href="http:&#x2F;&#x2F;malctheoracle.com&#x2F;post&#x2F;json-compression-part-deux" rel="nofollow">http:&#x2F;&#x2F;malctheoracle.com&#x2F;post&#x2F;json-compression-part-deux</a>
lothiraldan将近 9 年前
So it&#x27;s basically column oriented json? But 90d json is so much hipster...
Somojojojo将近 9 年前
This looks a lot like the first compression step in JSON HPack: <a href="https:&#x2F;&#x2F;github.com&#x2F;WebReflection&#x2F;json.hpack&#x2F;wiki" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;WebReflection&#x2F;json.hpack&#x2F;wiki</a>
deepsun将近 9 年前
If you care about size, then the first step should be choosing the right protocol for the task, e.g. Protobufs.<p>Changing your data structure for the sake of compression harms the main advantage of JSON: convenience.
stephenr将近 9 年前
If you&#x27;re taking this approach, why not just text&#x2F;csv as your data format. If you already <i>know</i> the field order&#x2F;names you can even omit the header row completely.
markauskas将近 9 年前
I would recommend gzip compression instead of this, which would compress the given data even more, without requiring any code changes.
评论 #11833321 未加载
评论 #11831547 未加载