[squeak-dev] [ANN] Sqnappy - a fast compressor wrapper

Masashi UMEZAWA masashi.umezawa at gmail.com
Fri Apr 26 02:49:04 UTC 2013


Hi all,

Recently I've developed Sqnappy - Squeak/Pharo binding of the snappy
compressor library.
https://github.com/mumez/sqnappy

About snappy:
https://code.google.com/p/snappy/

Sqnappy is easy to use. You can just send #compress:, #uncompress to SnappyCore:
	compressed := SnappyCore compress: data.
	uncompressed := SnappyCore uncompress: compressed.

With a simple test, Sqnappy was 10.8x faster than the existing
GZipWriteStream/GZipReadStream.
	
Additionally, Sqnappy implements snappy framing format, so that it can
treat big data with a small memory allocation.

About framing format:
https://code.google.com/p/snappy/source/browse/trunk/framing_format.txt

Tested from a workspace, 1.3 GB pg_dump file was compressed in around
10 seconds and decompressed in 6.5 seconds . No annoying GCs. It was
comfortable.

Enjoy!
-- 
[:masashi | ^umezawa]


More information about the Squeak-dev mailing list