From 8027c271fad0af15a001da58d3f05932c41ba916 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sat, 21 Dec 2024 18:47:44 +0000 Subject: [PATCH] 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. --- src/world/format/io/WorldProviderManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/world/format/io/WorldProviderManager.php b/src/world/format/io/WorldProviderManager.php index 057ffc9df..3f615bdc2 100644 --- a/src/world/format/io/WorldProviderManager.php +++ b/src/world/format/io/WorldProviderManager.php @@ -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),