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.

Stateless ZIP library – SLZ

129 pointsby marcopolisover 9 years ago

9 comments

JoshTriplettover 9 years ago
Every DEFLATE compression block can either supply its own Huffman table or compress using a fixed table. You can emit a DEFLATE-compatible compression stream without ever emitting a custom Huffman table or depending on previous data. And you&#x27;ll still do better than nothing for many types of data.<p>Given this, I wonder why HPACK invented a new compression scheme rather than just carefully using DEFLATE.
评论 #10167670 未加载
doublerebelover 9 years ago
Looks like SLZ hit 1.0 back in April [1]. Has anyone used it in production? Are packaged binaries available to get it up and running quickly?<p>[1]: <a href="http:&#x2F;&#x2F;git.1wt.eu&#x2F;web&#x2F;libslz.git&#x2F;" rel="nofollow">http:&#x2F;&#x2F;git.1wt.eu&#x2F;web&#x2F;libslz.git&#x2F;</a>
donatjover 9 years ago
Very interesting. This appears to do much better something I&#x27;ve been working on a PHP wrapper to do for a while now. I ended up currently opting out of compression as a whole and just using STORE zips to send multiple files at once without having to keep data in memory. This is absolutely worth looking into. It&#x27;s been a long time since something on HN has gotten me this excited.
strikingover 9 years ago
Absolutely incredible. I had no idea this was even possible. Defeating CRIME while keeping compression? I can hardly believe it.
评论 #10166967 未加载
trippy_biscuitsover 9 years ago
How does it address quines?<p><a href="http:&#x2F;&#x2F;research.swtch.com&#x2F;zip" rel="nofollow">http:&#x2F;&#x2F;research.swtch.com&#x2F;zip</a>
评论 #10168582 未加载
评论 #10168328 未加载
hinkleyover 9 years ago
So would this be useful for compressed virtual memory? It only does compress so it would only halve the memory usage but that&#x27;s something.
评论 #10167685 未加载
logicalleeover 9 years ago
Ah yes, for that elusive &quot;malloc-safe&quot; spec requirement.
评论 #10168138 未加载
warmwafflesover 9 years ago
May not be useful to me, but it is still cool either way.
ladon86over 9 years ago
How would one use this with HAProxy?