KissThreading.jl icon indicating copy to clipboard operation
KissThreading.jl copied to clipboard

Destination free tmap

Open mohdibntarek opened this issue 6 years ago • 2 comments

I often find it useful to have a parallel loop replacement. @threads works in this use case, but it is awkward and can introduce closure performance issues. It would be nice to be able to write:

tfor(1:J) do j
    ...
end

mohdibntarek avatar Jan 22 '19 08:01 mohdibntarek

maybe it should be called tforeach as a companion to foreach?

bkamins avatar Jan 22 '19 10:01 bkamins

Yes tforeach is nicer.

mohdibntarek avatar Jan 22 '19 11:01 mohdibntarek