4 ms·
Neat. I see that you explicitly specify 8 as the number of processes here. In Java, parallelStream() will pick a sane default for you if you haven't previously
by myroon5 9y ago
Neat.
I see that you explicitly specify 8 as the number of processes here. In Java, parallelStream() will pick a sane default for you if you haven't previously specified (based on the number of available processors, I believe). Is something like that possible in Python?
- jstarfish 9y agoThe ThreadPool class picks a sane default (number of cores), but I believe it uses Python threads instead of processes.