mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-11 00:09:39 +00:00
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:
parent
334d15339f
commit
2ecdea2cc6
@ -114,7 +114,8 @@ class LevelDB extends BaseWorldProvider implements WritableWorldProvider{
|
|||||||
*/
|
*/
|
||||||
private static function createDB(string $path) : \LevelDB{
|
private static function createDB(string $path) : \LevelDB{
|
||||||
return new \LevelDB($path . "/db", [
|
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
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user