Skip to content

Commit

Permalink
Merge pull request InsightSoftwareConsortium#602 from bnmajor/concurr…
Browse files Browse the repository at this point in the history
…ency

ENH: Set max concurrency to server logical processors times two
  • Loading branch information
bnmajor authored Jan 26, 2023
2 parents 2af72fc + 7492271 commit 90cbce2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions itkwidgets/viewer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import asyncio
import os
import queue
import threading
from imjoy_rpc import api
Expand Down Expand Up @@ -64,6 +65,7 @@ async def run(self, ctx):
config = ui
else:
config = {}
config['maxConcurrency'] = os.cpu_count() * 2

itk_viewer = await api.createWindow(
name=f"itkwidgets viewer {_viewer_count}",
Expand Down

0 comments on commit 90cbce2

Please sign in to comment.