aboutcode-org / aboutcode-org/scancode-toolkit

CLI Option `processes`, what is a good value?

Đang mở
#2,980 4 bình luận 1 reaction 0 người được giao Xem trên GitHub
documentation Priority: medium
Ngôn ngữ chính
Python
Star
2.6k
Fork
791
Merge trung bình
1 ngày 12 giờ
Pull request đã merge (30 ngày)
5

Mô tả

### Description

The documentation contains very little information about the effect of the `--processes` parameter. It mentions the default value, but not much more.

I am struggling to understand how many processes would be a sensible value to improve the speed of the scan? The default is 1, I guess that is a conservative value to ensure Scancode-Toolkit works even in resource restricted environments (e.g. low powered VM).

Should the processes be equal to the number of cores of the CPU? Is there an amount of processes which is just too much? Because not every part of the code can be parallelized.

While it is difficult to give a general recommendation. It would be beneficial to have more information, so that users can find there individual "good" value.

### Link to Documentation Page

https://scancode-toolkit.readthedocs.io/en/stable/cli-reference/list-options.html#all-core-scan-options

### Select Category

- [ ] Inconsistency
- [ ] New Section Request
- [x] General Improvement
- [ ] Typo/Mistakes
- [ ] Other

For more information have a look at: #608

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.