From 53aabc663ce3a25fb6942beef231ccb4bbd1f6cb Mon Sep 17 00:00:00 2001 From: Iman Montajabi Date: Sun, 2 Jun 2024 03:16:17 +0330 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c0ae544..7177388 100644 --- a/README.md +++ b/README.md @@ -54,8 +54,8 @@ The results are saved in a SQLite database named `output.db` and a CSV file name > [!IMPORTANT] > The higher the value you choose for this item, the more resources your computer will consume. -- Active tasks (Semaphore) define a boundary for active tasks at the moment. -- Max workers should be double the number of active tasks, but the default value is calculated using this approach of Python document: "Changed in version 3.8: Default value of max_workers is changed to min(32, os.cpu_count() + 4). This default value reserves at least 5 workers for I/O-bound tasks. It utilizes at most 32 CPU cores for CPU-bound tasks which release the GIL. And it avoids implicitly using very large resources on many-core machines." +- Active tasks (Semaphore) defines a boundary for active tasks at the moment. +- Max workers should be double of the number of active tasks, but the default value is calculated using this approach (Python document): "Changed in version 3.8: Default value of max_workers is changed to min(32, os.cpu_count() + 4). This default value reserves at least 5 workers for I/O-bound tasks. It utilizes at most 32 CPU cores for CPU-bound tasks which release the GIL. And it avoids implicitly using very large resources on many-core machines." > [!IMPORTANT] > The more values you choose for items, the more resources your system will consume and may potentially freeze your computer.