how to efficiently apply a medium-weight function in parallel

前端 未结 4 590
广开言路
广开言路 2020-12-30 07:51

I\'m looking to map a modestly-expensive function onto a large lazy seq in parallel. pmap is great but i\'m loosing to much to context switching. I think I need

4条回答
  •  有刺的猬
    2020-12-30 08:16

    If you don't mind something slightly exotic (in exchange for some really noticeable speedup), you might also want to look into the work done by the author of the Penumbra-library, which provides easy access to the GPU.

提交回复
热议问题