Skip to content

Commit

Permalink
Increase limits when loading TMA grid
Browse files Browse the repository at this point in the history
  • Loading branch information
petebankhead committed Jun 16, 2020
1 parent 1ebb212 commit 5864f76
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ class TMAGridView implements Runnable, ChangeListener<ImageData<BufferedImage>>,

/**
* Max thumbnails to store in cache.
* This ends up ~< 90MB, assuming RGBA.
* This ends up ~< 180MB, assuming RGBA.
*/
private static int MAX_CACHE_SIZE = 250;
private static int MAX_CACHE_SIZE = 500;

/**
* Cache for storing image thumbnails
Expand Down Expand Up @@ -279,11 +279,12 @@ private void initializeData(ImageData<BufferedImage> imageData) {

long startTime = System.currentTimeMillis();
try {
latch.await(5, TimeUnit.SECONDS);
latch.await(10, TimeUnit.SECONDS);
} catch (InterruptedException e1) {
logger.debug("Loaded {} cores in 5 seconds", cores.size() - latch.getCount());
if (latch.getCount() > 0)
logger.warn("Loaded {} cores in 10 seconds", cores.size() - latch.getCount());
}
logger.debug("Countdown complete in {} seconds", (System.currentTimeMillis() - startTime)/1000.0);
logger.info("Countdown complete in {} seconds", (System.currentTimeMillis() - startTime)/1000.0);


model.setImageData(imageData, cores);
Expand Down

0 comments on commit 5864f76

Please sign in to comment.