mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
Remove regionized leveldb 32x32 and 64x64
these produce such small file sizes on average that the DB logs would probably take up a significant fraction of the world's footprint. My gut instinct is that 128 will probably be the sweet spot, as on average it should sit well below the threshold for level 3 compactions, and most worlds would likely fit into a single DB. 256 is probably not worthwhile, but might be worth trying.
This commit is contained in:
parent
6abc40bb83
commit
8027c271fa
@ -53,7 +53,7 @@ final class WorldProviderManager{
|
||||
|
||||
//any arbitrary size is supported, but powers of 2 are best
|
||||
//these are the most likely to be useful
|
||||
foreach([32, 64, 128, 256] as $regionLength){
|
||||
foreach([128, 256] as $regionLength){
|
||||
$this->addProvider(new WritableWorldProviderManagerEntry(
|
||||
fn(string $path) => RegionizedLevelDB::isValid($path, $regionLength),
|
||||
fn(string $path, \Logger $logger) => new RegionizedLevelDB($path, $logger, $regionLength),
|
||||
|
Loading…
x
Reference in New Issue
Block a user