소스 검색

wxGUI/datacatalog: do not use all available cores for loading (#1422)

Anna Petrasova 4 년 전
부모
커밋
3eac3e13c4
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      gui/wxpython/datacatalog/tree.py

+ 2 - 2
gui/wxpython/datacatalog/tree.py

@@ -450,9 +450,9 @@ class DataCatalogTree(TreeView):
         proc_list = []
         loc_list = []
         try:
-            nprocs = cpu_count()
+            nprocs = max(1, cpu_count() - 1)
         except NotImplementedError:
-            nprocs = 4
+            nprocs = 1
 
         results = dict()
         errors = []