top | item 11583898

Kraken: 3x faster decompression than zlib

147 points| dahjelle | 10 years ago |radgametools.com | reply

68 comments

order
[+] rb2k_|10 years ago|reply
Another interesting compression project is "Zstandard"

Open source, high performance, decent compression and a "dictionary mode" that's especially fun when it comes to compressing a lot of small data.

http://www.zstd.net

Previous discussion over at https://news.ycombinator.com/item?id=8941955

[+] Johnie|10 years ago|reply
There's too many projects named Kraken:

* http://krakenjs.com/ - Javascript framework

* https://www.kraken.com/ - BTC exchange

* https://kraken.io/ - Image Optimizer

[+] dwc|10 years ago|reply
There are too many projects of any name (most never see the light of day), but somehow all these Krakens get released.
[+] josteink|10 years ago|reply
I guess someone was ordered to release the Kraken(s), and as Eddie Izzard famously observed[1], nobody ever issued an order to retrieve the Kraken.

To the grumpy crowd: Sorry in adance for the reddit-like comment. I feel a bit light-spirited today :)

[1] https://www.youtube.com/watch?v=Cyq4zT0h0yk

[+] userbinator|10 years ago|reply
I guess it's yet another optimised LZ variant, and it's no surprise that LZ-based/inspired algorithms are fast, because their main loop is very simple and does not involve the intense bit manipulation of Huffman/Arithmetic algorithms. That's how very carefully optimised LZ can end up being faster than memcpy() in some cases:

http://www.oldskool.org/pc/lz4_8088

[+] EvgeniyZh|10 years ago|reply
How is it compared to Zstandard https://github.com/Cyan4973/zstd ?
[+] wolf550e|10 years ago|reply
Especially with level 22 with --ultra, I found the compression to be good and decompression very fast. Can't wait for 1.0 for format freeze (currently decompressor contains code for previous versions, but that's a hack).
[+] muizelaar|10 years ago|reply
Unfortunately not open source.
[+] vvanders|10 years ago|reply
Feel free to downvote me but some people need to eat.

Game development doesn't really match well with the consultancy model of most commercial Open Source companies.

Also the RAD guys are awesome, they've been putting out solid tools for years.

[+] kazinator|10 years ago|reply
Is this 3x faster than zlib at decompressing on zlib-compressed data, or 3x faster on samples compressed with its own format versus the same samples compressed with zlib?
[+] mmozeiko|10 years ago|reply
It is custom compression algorithm. It has its own format.
[+] Jerry2|10 years ago|reply
Does anyone know how Apple's lzfse [0] compares to some of these other compression algos?

>Beginning with iOS 9 and OSX 10.11 El Capitan, we provide Apple’s proprietary compression algorithm, LZFSE. LZFSE is a new algorithm, matching the compression ratio of ZLIB level 5, but with much higher energy efficiency and speed (between 2x and 3x) for both encode and decode operations.

I'm interested because of the low energy characteristics...

[0] : https://developer.apple.com/library/tvos/documentation/Perfo...

[+] noir_lord|10 years ago|reply
Is the speed difference algorithmic, implementation optimization or a mix of both?
[+] stellar2|10 years ago|reply
Looking at the figures, it seems to have roughly the same performance as Zstandard in high compression mode.
[+] Gratsby|10 years ago|reply
But what is it's Weissman score?
[+] gjkood|10 years ago|reply
I was just watching Silicon Valley yesterday and this is exactly what I was thinking when I read the title. 6.0+?