Skip to content

Commit 7eaf2cb

Browse files
committed
set threadpool size to cpu_count * 4
1 parent 7782783 commit 7eaf2cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

xconn/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def __init__(self, base_session: types.BaseSession):
7171
self._stopped = threading.Event()
7272

7373
# callback executor thread-pool
74-
self._executor = ThreadPoolExecutor(max_workers=cpu_count() or 4)
74+
self._executor = ThreadPoolExecutor(max_workers=(cpu_count() or 1) * 4)
7575

7676
thread = threading.Thread(target=self._wait, daemon=True)
7777
thread.start()

0 commit comments

Comments
 (0)