Skip to content

Commit

Permalink
optimized thread count
Browse files Browse the repository at this point in the history
  • Loading branch information
azad.erdogan committed Jul 7, 2023
1 parent 37f2a3b commit e4e788a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tile_crawler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class TileCrawler {
return (availableProcessors / 2).ceil();
} else {
var threadCount = (tileCount / availableProcessors).ceil();
var maxThreadCount = availableProcessors * 3;
var maxThreadCount = availableProcessors * 2;
return threadCount < maxThreadCount ? threadCount : maxThreadCount;
}
}
Expand Down

0 comments on commit e4e788a

Please # to comment.