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

Destination free tmap

Open mohamed82008 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

mohamed82008 avatar Jan 22 '19 08:01 mohamed82008

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

bkamins avatar Jan 22 '19 10:01 bkamins

Yes tforeach is nicer.

mohamed82008 avatar Jan 22 '19 11:01 mohamed82008