-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
specialize sum for FillArrays #182
Conversation
Codecov Report
@@ Coverage Diff @@
## master #182 +/- ##
=======================================
Coverage 96.95% 96.96%
=======================================
Files 4 4
Lines 657 659 +2
=======================================
+ Hits 637 639 +2
Misses 20 20
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Gentle bump @dlfivefifty. This is a bugfix and restores previous behaviour, so would be good to have this merged soon. The CI for |
I'm a bit worried about depending on packages which depend on this package....couldn't we just implement a simple version of You could use the version in Base: https://github.com/JuliaLang/julia/blob/master/test/testhelpers/InfiniteArrays.jl |
I've updated this now as suggested. I don't think the dependency resolution should be an issue, as the test environment will |
The specialized
sum
was removed in #181, relying on the specializedmapreduce
instead. While this is fine for finite-sized arrays, it doesn't seem to work for infinite arrays. This PR reverts that change. Withsum
specialized, the following works inO(1)
time again:Ideally, we would be able to get
mapreduce
to work for infinite arrays, but this should avoid breaking code meanwhile.