Changeset View
Changeset View
Standalone View
Standalone View
src/leveldb/include/leveldb/options.h
Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Lines | struct Options { | ||||
// Number of keys between restart points for delta encoding of keys. | // Number of keys between restart points for delta encoding of keys. | ||||
// This parameter can be changed dynamically. Most clients should | // This parameter can be changed dynamically. Most clients should | ||||
// leave this parameter alone. | // leave this parameter alone. | ||||
// | // | ||||
// Default: 16 | // Default: 16 | ||||
int block_restart_interval; | int block_restart_interval; | ||||
// Leveldb will write up to this amount of bytes to a file before | |||||
// switching to a new one. | |||||
// Most clients should leave this parameter alone. However if your | |||||
// filesystem is more efficient with larger files, you could | |||||
// consider increasing the value. The downside will be longer | |||||
// compactions and hence longer latency/performance hiccups. | |||||
// Another reason to increase this parameter might be when you are | |||||
// initially populating a large database. | |||||
// | |||||
// Default: 2MB | |||||
size_t max_file_size; | |||||
// Compress blocks using the specified compression algorithm. This | // Compress blocks using the specified compression algorithm. This | ||||
// parameter can be changed dynamically. | // parameter can be changed dynamically. | ||||
// | // | ||||
// Default: kSnappyCompression, which gives lightweight but fast | // Default: kSnappyCompression, which gives lightweight but fast | ||||
// compression. | // compression. | ||||
// | // | ||||
// Typical speeds of kSnappyCompression on an Intel(R) Core(TM)2 2.4GHz: | // Typical speeds of kSnappyCompression on an Intel(R) Core(TM)2 2.4GHz: | ||||
// ~200-500MB/s compression | // ~200-500MB/s compression | ||||
▲ Show 20 Lines • Show All 79 Lines • Show Last 20 Lines |