Skip to content

Commit

Permalink
perf(stackPrefetch): Added stackPrefetch config with 20 max concurren…
Browse files Browse the repository at this point in the history
…t requests (#2000)

Co-authored-by: Danny Brown <danny.ri.brown@gmail.com>
  • Loading branch information
Alex979 and dannyrb authored Aug 20, 2020
1 parent ebdcde1 commit 3b02a06
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions extensions/cornerstone/src/initCornerstoneTools.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,11 @@ export default function(configuration = {}) {
cornerstoneTools.toolColors.setActiveColor('rgb(0, 255, 0)');

cornerstoneTools.store.state.touchProximity = 40;

// Configure stack prefetch
cornerstoneTools.stackPrefetch.setConfiguration({
maxImagesToPrefetch: Infinity,
preserveExistingPool: false,
maxSimultaneousRequests: 20,
});
}

0 comments on commit 3b02a06

Please sign in to comment.