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:
Dylan K. Taylor 2024-12-21 18:47:44 +00:00
parent 6abc40bb83
commit 8027c271fa
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -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),