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.

Facebook/Zstandard – Fast real-time compression algorithm

56 pointsby animationwillover 4 years ago

7 comments

jakogutover 4 years ago
ZSTD seems to be relatively revolutionary in the field of compression, at least in most of the test cases I&#x27;ve tried. Binaries typically compress as well as LZMA2, averaging about a 50% compression ratio, with nearly an order of magnitude faster decompression.<p>ZSTD beats DEFLATE and Gzip seemingly in every metric. It decompresses faster than almost any algorithm out there, save maybe LZO or LZ4, and has a compression ratio comparable to much slower algorithms.<p>Arch Linux switched to ZSTD for compressing their package database at the beginning of this year, and only increased the overall average compressed size by 0.8%, while speeding up decompression several orders of magnitude compared to LZMA2.
评论 #24717042 未加载
评论 #24716996 未加载
nevonover 4 years ago
As it happens, [I was adding Zstandard support](<a href="https:&#x2F;&#x2F;github.com&#x2F;kafkajs&#x2F;zstd" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;kafkajs&#x2F;zstd</a>) to [KafkaJS](<a href="https:&#x2F;&#x2F;kafka.js.org" rel="nofollow">https:&#x2F;&#x2F;kafka.js.org</a>) yesterday. Sadly, the closest thing there is to official bindings for NodeJS haven&#x27;t been updated for 4 years and don&#x27;t build against newer versions of Node, so I ended up having to rely on some random fork that I have no reason to believe is going to be maintained.<p>Unfortunately, the overlap of people that know C++ well enough to write high quality bindings and also have an interest in NodeJS is not that large. I tried to get into it myself, but there&#x27;s a pretty steep learning curve and once you go beyond tiny toy examples it gets pretty hairy.<p>If someone has the skills and interest in taking on a medium sized open source project that would be immediately useful to a lot of people in the Node community, Zstandard would be a good choice.
评论 #24717032 未加载
sidpatilover 4 years ago
&gt; Zstandard is dual-licensed under BSD and GPLv2.<p>Both of which don&#x27;t offer a patent license.
fulafelover 4 years ago
How well does it perform in WebAssembly?
评论 #24736553 未加载
ncmncmover 4 years ago
I just would like for wireshark or tshark to handle zstd- or lz4-compressed pcaps. Then all would be good.
loremipsiumover 4 years ago
so hooli wasn&#x27;t google after all
评论 #24717756 未加载
s_mover 4 years ago
Yeah but what&#x27;s its Weissman score?