在Python中对阶乘函数进行并行化是否比在单个进程中递归地进行更可取?

2024-09-29 23:20:03 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在考虑将串行计算越来越大的阶乘数的current script更改为并行计算,但我看到了a post suggesting that the recursive calculation will be faster than parallel due to overhead of managing processes。在执行时间方面,阶乘函数的输入大小是否值得并行处理


Tags: thetothatparallelscriptbecurrentpost

热门问题