-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add let block around call to partialsort! to avoid overhead from captured variable #76
Conversation
ad4252f
to
66a3af3
Compare
66a3af3
to
c5b65ec
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #76 +/- ##
==========================================
+ Coverage 89.90% 90.00% +0.09%
==========================================
Files 2 2
Lines 208 210 +2
==========================================
+ Hits 187 189 +2
Misses 21 21
☔ View full report in Codecov by Sentry. |
@andreasnoack if you merge in |
captured variable
c5b65ec
to
5cfc2db
Compare
Benchmark Report for /home/runner/work/Loess.jl/Loess.jlJob Properties
ResultsA ratio greater than
Benchmark Group ListHere's a list of all the benchmark groups executed by this job:
Julia versioninfoTarget
Baseline
|
Superseded by #74 |
See #73 (comment) for some details. This isn't sufficient to make
loess
feasible for the dataset in #73 but it significantly speeds up the calculation. For a random subset with 10000 elements of the dataset from #73, I'm gettingwith the current implementation and
with this PR.
Update: I've changed this to just use a
let
block instead the helper function. The performance impact is the same.