I've noticed that foreach_array is partly inspired by ThreadTools' tforeach. I did the same for DataFrames.jl, and we noticed that Iterators.partition doesn't give very good results since the last chunk will generally be smaller than others, which is bad for load balancing. See https://github.com/JuliaData/DataFrames.jl/pull/2661#discussion_r593959480 for details and a possible solution. I hope this is useful.
I've noticed that
foreach_array
is partly inspired by ThreadTools'tforeach
. I did the same for DataFrames.jl, and we noticed thatIterators.partition
doesn't give very good results since the last chunk will generally be smaller than others, which is bad for load balancing. See https://github.com/JuliaData/DataFrames.jl/pull/2661#discussion_r593959480 for details and a possible solution. I hope this is useful.