Skip to content

Commit f1e14cd

Browse files
committed
Reduce # scan threads to #CPU from #CPU+1
autopull
1 parent 187b104 commit f1e14cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bodyfetcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class BodyFetcher:
3939
QUOTA_ROLLOVER_DETECTION_MINIMUM_DIFFERENCE = 5000
4040

4141
cpu_count = psutil.cpu_count()
42-
MAX_SCAN_THREADS_DIFFERENCE_TO_CPU_COUNT = 1
42+
MAX_SCAN_THREADS_DIFFERENCE_TO_CPU_COUNT = 0
4343
max_scan_thread_count = cpu_count + MAX_SCAN_THREADS_DIFFERENCE_TO_CPU_COUNT
4444
scan_thread_count_semaphore = threading.BoundedSemaphore(value=max_scan_thread_count)
4545
THREAD_STARVATION_POST_IN_CHAT_AFTER_ELAPSED_TIME = 3 * 60

0 commit comments

Comments
 (0)