TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

JSON Compression by Rotating Data 90°

4 pointsby sfeatherabout 9 years ago

6 comments

malctheoraclealmost 9 years ago
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>
lothiraldanabout 9 years ago
So it&#x27;s basically column oriented json? But 90d json is so much hipster...
Somojojojoabout 9 years ago
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>
deepsunabout 9 years ago
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.
stephenrabout 9 years ago
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.
markauskasabout 9 years ago
I would recommend gzip compression instead of this, which would compress the given data even more, without requiring any code changes.
评论 #11833321 未加载
评论 #11831547 未加载