Options.compression

Compress blocks using the specified compression algorithm. This parameter can be changed dynamically.

leveldb_no_compression = 0, leveldb_snappy_compression = 1

Default: kSnappyCompression, which gives lightweight but fast compression.

Typical speeds of kSnappyCompression on an Intel(R) Core(TM)2 2.4GHz: ~200-500MB/s compression ~400-800MB/s decompression Note that these speeds are significantly faster than most persistent storage speeds, and therefore it is typically never worth switching to kNoCompression. Even if the input data is incompressible, the kSnappyCompression implementation will efficiently detect that and will switch to uncompressed mode.

class Options
@property
void
compression
(
int val
)

Meta