LevelDB: increase default block size to 64KB

this might be a little too big, but it's definitely better than the leveldb default 4KB, since most of our data is bigger than 4KB.
This commit is contained in:
Dylan K. Taylor 2019-07-29 18:54:27 +01:00
parent 334d15339f
commit 2ecdea2cc6

View File

@ -114,7 +114,8 @@ class LevelDB extends BaseWorldProvider implements WritableWorldProvider{
*/
private static function createDB(string $path) : \LevelDB{
return new \LevelDB($path . "/db", [
"compression" => LEVELDB_ZLIB_RAW_COMPRESSION
"compression" => LEVELDB_ZLIB_RAW_COMPRESSION,
"block_size" => 64 * 1024 //64KB, big enough for most chunks
]);
}