Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ImanMontajabi authored Jun 1, 2024
1 parent 8c7370c commit 53aabc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 53aabc6

Please sign in to comment.