Skip to content

zlib compression support#2

Open
kostast wants to merge 1 commit intoscrapinghub:masterfrom
kostast:master
Open

zlib compression support#2
kostast wants to merge 1 commit intoscrapinghub:masterfrom
kostast:master

Conversation

@kostast
Copy link
Copy Markdown

@kostast kostast commented Jul 13, 2013

Added zlib compression support. Saves disk space up to 2-5 times for textual data.
Possible improvements:

  • wider algorithm support;
  • do not compress already compressed data (archives, images, video and etc.)
    Data structure is compatible with older cache structure.

Signed-off-by: Kostas Tamošiūnas <tamosiunas@gmail.com>
@nyov
Copy link
Copy Markdown
Contributor

nyov commented Oct 2, 2014

Hey, I like this. I have fiddled with compression in another cache storage, and it can really help.
It can even speed things up, when using a fast Level-Ziv-only compressor like lzo or snappy.

I could see some enhancement though by doing compression in a different extension, with a broader algorithm support, or at least globally as an option for all cache backends, and I'm (kinda) working on that. Just FYI, this isn't completely ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants