On 12/11/14 13:07, marius adrian popa wrote:
> I guess compression can be further improved with lz4/snappy

Once again: I've tried lz4. It's really much faster - when compressing 
some big (100Mb) binary with debug info it's 15 times faster than gzip, 
but compression ratio is worse:

-rw-r--r-- 1 root root 58460176 Dec 11 15:52 libEngine12.lz4
-rwxr-xr-x 1 root root 39408515 Nov 25 12:22 libEngine12.gz

Probably with some other file ratio will differ but I believe not too 
much. And what about data packages - what I've seen were compressed with 
gzip definitely better. I.e. with lz4 firebird will have to send approx. 
50% more packets and therefore will be 1.5 times slower.

What abour snappy - I did not try it myself but that's what I see on 
http://code.google.com/p/snappy/

> Snappy is a compression/decompression library. It does not aim for 
> maximum compression, or compatibility with any other compression 
> library; instead, it aims for very high speeds and reasonable 
> compression. For instance, compared to the fastest mode of zlib, 
> Snappy is an order of magnitude faster for most inputs, but the 
> resulting compressed files are anywhere from 20% to 100% bigger.

I suppose we are not going to save CPU resources with the price of 
loosing overall performance.


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to