merger-tweak
Mike Barry 2024-01-14 06:18:22 -05:00
rodzic a403797875
commit 1ac2f3d577
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -88,8 +88,8 @@ public class TileArchiveWriter {
TileArchiveMetadata tileArchiveMetadata, Path layerStatsPath, PlanetilerConfig config, Stats stats) {
var timer = stats.startStage("archive");
int chunksToRead = Math.min(1, features.chunksToRead());
int readThreads = Math.clamp(config.featureReadThreads(), 1, chunksToRead);
int chunksToRead = Math.max(1, features.chunksToRead());
int readThreads = Math.min(config.featureReadThreads(), chunksToRead);
int threads = config.threads();
int processThreads = threads < 10 ? threads : threads - readThreads;
int tileWriteThreads = config.tileWriteThreads();