FS#71403 - Add a magic value for ParallelDownloads to use the number of threads
Attached to Project:
Pacman
Opened by -- (bamboozilla) - Wednesday, 30 June 2021, 09:33 GMT
Last edited by Allan McRae (Allan) - Wednesday, 30 June 2021, 11:28 GMT
Opened by -- (bamboozilla) - Wednesday, 30 June 2021, 09:33 GMT
Last edited by Allan McRae (Allan) - Wednesday, 30 June 2021, 11:28 GMT
|
Details
Summary and Info:
As ParallelDownloads is available, it would be great to be able to set it to a variable called "$threadCount" so it maximizes the machine capabilities. e.g: pacman.conf ``` ParallelDownload=$threadCount ``` |
This task depends upon
Closed by Allan McRae (Allan)
Wednesday, 30 June 2021, 11:28 GMT
Reason for closing: Won't implement
Wednesday, 30 June 2021, 11:28 GMT
Reason for closing: Won't implement
In order to be cross platform independant, this could be used: `python -c 'import multiprocessing as mp; print(mp.cpu_count())'`
This would be great for "small" machines having a small amount of core/threads.
In my case, I don't mind using 12 threads if it's available.