-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix mapreduce_impl() for 1-element range (#19325)
* fix mapreduce_impl() for 1-element range * mapreduce_impl() type stability tests * wrap long lines * mapreduce_impl(): add @inbounds ifirst:ilast should be a valid A indices range (checked by the caller) * reduce code duplication in _mapreduce() - let mapreduce_impl() handle all but empty collection cases - don't test mapreduce_impl() directly - extend mapreduce() tests with empty/long collections * mapreduce_impl(f, min/max): don't skip NaNs - update mapreduce_impl(f, min/max) to 0.6 behaviour of treating NaNs, also stop scanning the array once NaN is detected - add NaN minimum/maximum() tests for 2-element and long arrays * mapreduce(f, op): don't apply @inbounds for `f` * clarify how mapreduce_impl() should be used
- Loading branch information
Showing
2 changed files
with
59 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fb312c4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nanosoldier
runbenchmarks(ALL, vs="@333ff80e852aa20e9568e47d395ded82ad73f8d0")
fb312c4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your benchmark job has completed - possible performance regressions were detected. A full report can be found here. cc @jrevels