google / leveldb

LevelDB is a fast key-value storage library written at Google that provides an ordered mapping from string keys to string values.
BSD 3-Clause "New" or "Revised" License
36.57k stars 7.83k forks source link

Support for zlib compression #721

Open ghost opened 5 years ago

ghost commented 5 years ago

Was considered in https://github.com/google/leveldb/blob/master/table/table_builder.cc#L152

A fork by microsoft games studios/mojang has this feature (https://github.com/Mojang/leveldb-mcpe), so the demand is already there. If anything someone could port over the feature from there.

felipecrv commented 4 years ago

zlib achieves higher compression ratios than Snappy, but is slower. An alternative with similar characteristics would be lz4.

https://github.com/lz4/lz4

sfwtoms2030 commented 4 years ago

zlib achieves higher compression ratios than Snappy, but is slower. An alternative with similar characteristics would be lz4.

https://github.com/lz4/lz4

do u have more detail information about lz4 and snappy.

felipecrv commented 4 years ago

@sfwtoms2030 see the lz4 benchmarks featuring snappy, zlib and others -- https://github.com/lz4/lz4#benchmarks