Skip to content
Snippets Groups Projects
Commit a27d31bc authored by Tobias Pietzsch's avatar Tobias Pietzsch
Browse files

Increase number of fetcher threads for N5

parent e9b5073b
Branches
No related tags found
No related merge requests found
......@@ -152,7 +152,7 @@ public class N5ImageLoader implements ViewerImgLoader, MultiResolutionImgLoader
maxNumLevels = Math.max( maxNumLevels, setupImgLoader.numMipmapLevels() );
}
final int numFetcherThreads = 1;
final int numFetcherThreads = Math.max( 1, Runtime.getRuntime().availableProcessors() );
final BlockingFetchQueues< Callable< ? > > queue = new BlockingFetchQueues<>( maxNumLevels, numFetcherThreads );
fetchers = new FetcherThreads( queue, numFetcherThreads );
cache = new VolatileGlobalCellCache( queue );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment