Skip to content

Commit 90cbce2

Browse files
authored
Merge pull request #602 from bnmajor/concurrency
ENH: Set max concurrency to server logical processors times two
2 parents 2af72fc + 7492271 commit 90cbce2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

itkwidgets/viewer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import asyncio
2+
import os
23
import queue
34
import threading
45
from imjoy_rpc import api
@@ -64,6 +65,7 @@ async def run(self, ctx):
6465
config = ui
6566
else:
6667
config = {}
68+
config['maxConcurrency'] = os.cpu_count() * 2
6769

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

0 commit comments

Comments
 (0)