Releases: JuliaFolds2/ChunkSplitters.jl
Releases · JuliaFolds2/ChunkSplitters.jl
v3.1.0
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)
v2.6.0
ChunkSplitters v2.6.0
New features:
- add
minchunksize
option. - add
BatchSplit
andScatterSplit
types as (type-stable) default alternatives to symbols:batch
and:scatter
. Types are preferred and should be used to guarantee that the generation of the chunks do not allocate any intermediate.
Merged pull requests:
minchunksize
+split::SplitStrategy
(new default) (#46) (@carstenbauer)
v2.5.0
ChunkSplitters v2.5.0
- Support
eachindex(enumerate(chunks(...)))
Merged pull requests:
- implement eachindex(enumerate(...)) (#42) (@lmiq)
- Drop Compat dependency + Update CI (#44) (@carstenbauer)
Closed issues:
v2.4.5
v2.4.4
v2.4.3
v2.4.2
ChunkSplitters v2.4.2
- return empty vector when the iterator is empty (solves issue #31).
v2.4.1
ChunkSplitters v2.4.1
- default values for
n
andsize
are set tonothing
, avoiding a type instability in the definition of theConstraint
type.
Merged pull requests:
v2.4.0
ChunkSplitters v2.4.0
- support for
size > length(array)
.
Merged pull requests:
- Support
size>length(input)
(#29) (@carstenbauer)