Closed lmiq closed 1 year ago
Merging #95 (92f52de) into master (831bbd2) will increase coverage by
2.10%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## master #95 +/- ##
==========================================
+ Coverage 73.39% 75.49% +2.10%
==========================================
Files 1 2 +1
Lines 233 253 +20
==========================================
+ Hits 171 191 +20
Misses 62 62
Impacted Files | Coverage Δ | |
---|---|---|
src/IterTools.jl | 73.39% <ø> (ø) |
|
src/chunks.jl | 100.00% <100.00%> (ø) |
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more
Hello, any update concerning this pull request ?
To be truth, I don´t think it is a good idea to merge it now, as the ChunkSplitters.jl
package went already has been tested more carefully. If it was the case, the PR should be updated to include the latest version of it (maybe make it a dependency?).
In this PR I implement the
chunks
iterator, which is useful to distribute the workload in threaded loops.The iterators are implemented in this package, for the moment: https://github.com/m3g/ChunkSplitters.jl
The idea is to facilitate the distribution of workloads in custom threaded loops, with, for example:
and this can be used to split the workload in each range of indices of the array, and also to accumulate in thread-safe temporary variables, by indexing by the ranges and chunk numbers. For instance: