dain / leveldb

Port of LevelDB to Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What's the different between CompressionType.SNAPPY and NONE

zhangtianxiao opened this issue · comments

NONE will faster ?

NONE does not compress at all which saves CPU at the cost of more IO. SNAPPY uses the https://github.com/google/snappy compression algorithm which is very efficient, but will cost some CPU. I believe most people use SNAPPY, because the additional CPU usage is cheaper that the additional flash storage cost.