From 2ecdea2cc69983198008835ebbe39d2397d21f16 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Mon, 29 Jul 2019 18:54:27 +0100 Subject: [PATCH] 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. --- src/pocketmine/world/format/io/leveldb/LevelDB.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pocketmine/world/format/io/leveldb/LevelDB.php b/src/pocketmine/world/format/io/leveldb/LevelDB.php index 9b9e0a06f..c3ffe5bf8 100644 --- a/src/pocketmine/world/format/io/leveldb/LevelDB.php +++ b/src/pocketmine/world/format/io/leveldb/LevelDB.php @@ -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 ]); }