No more threadid indexing? [thread-local storage]

I think a different name, instead of keyword arguments would be easier to remember. These are really two different jobs!

It gives a smoother partition. That’s good for threading, and bad for simd / branch prediction. Different job, different tool.

julia> x=1:100;n=7; length.(collect(Iterators.partition(eachindex(x), cld(length(x), n))))
7-element Vector{Int64}:
 15
 15
 15
 15
 15
 15
 10
julia> length.(collect(ChunkSplitters.index_chunks(x; n)))
7-element Vector{Int64}:
 15
 15
 14
 14
 14
 14
 14
4 Likes