将溪流与未来融为一体
Parallelizing Stream with Future
摘要:
流被重新解释为Lazy monad。在所获得的构造中,Future被替换为Lazy,从而导致任何可表示为流计算的算法的可能并行化。对两个示例算法的原则进行测试。性能进行了评估,并简要讨论了改进的方法。
英文摘要:
Stream is re-interpreted in terms of a Lazy monad. Future is substituted for Lazy in the obtained construct, resulting in possible parallelization of any algorithm expressible as a Stream computation. The principle is tested against two example algorithms. Performance is evaluated, and a way to improve it briefly discussed.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。