v3.0.0
ChunkSplitters v3.0.0
This release is a major overhaul of the user interface.
Changes:
- The new lower compat bound for Julia is 1.10. This implies that support for the old LTS 1.6 has been dropped.
- The old main API function
chunks
is deprecated, and the newchunks
function behaves differently. - The new
chunks
has been introduced that returns an iterator that provides chunks of elements rather than chunks of indices of a given input collection. To avoid copies, it is based onview
. - A new function
index_chunks
is introduced that returns the indices of the chunks. - For performance reasons, the
split
keyword option now requires aSplit
instead of aSymbol
. Concretely,:batch
should be replaced byConsecutive()
and:scatter
should be replaced byRoundRobin()
. - The keyword argument
minchunksize
has been renamed tominsize
. -
getchunk
isn't public API anymore (and has, internally, been renamed togetchunkindices
). If you really need a replacement, consider usingindex_chunks(...)[i]
instead. - The old legacy API that relied on positional rather than keyword arguments has been dropped.
Merged pull requests:
- Changes for 3.0 (#48) (@carstenbauer)
- Simplify iterate method to remove allocation on 1.10. (#50) (@fredrikekre)
- Simplify enumerate iterate (#51) (@lmiq)
Closed issues:
- 3.0 (#47)