Skip to content

Commit

Permalink
fix num read threads
Browse files Browse the repository at this point in the history
  • Loading branch information
msbarry committed Jan 14, 2024
1 parent 14bd994 commit a403797
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ public static void writeOutput(FeatureGroup features, WriteableTileArchive outpu
TileArchiveMetadata tileArchiveMetadata, Path layerStatsPath, PlanetilerConfig config, Stats stats) {
var timer = stats.startStage("archive");

int readThreads = Math.min(config.featureReadThreads(), features.chunksToRead());
int chunksToRead = Math.min(1, features.chunksToRead());
int readThreads = Math.clamp(config.featureReadThreads(), 1, chunksToRead);
int threads = config.threads();
int processThreads = threads < 10 ? threads : threads - readThreads;
int tileWriteThreads = config.tileWriteThreads();
Expand Down

0 comments on commit a403797

Please sign in to comment.