JuliaApproximation / ApproxFunBase.jl

Core functionality of ApproxFun
MIT License
12 stars 13 forks source link

Reduce allocations in ConcreteEvalaution indexing #554

Closed jishnub closed 1 year ago

jishnub commented 1 year ago

On master

julia> S = JacobiWeight(0,0,Chebyshev());

julia> E = Evaluation(S,0.5,1);

julia> @btime $E[1:10];
  14.094 μs (201 allocations: 6.70 KiB)

This PR

julia> @btime $E[1:10];
  1.056 μs (21 allocations: 1.47 KiB)
codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (614f040) 27.62% compared to head (b94056c) 27.62%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #554 +/- ## ======================================= Coverage 27.62% 27.62% ======================================= Files 80 80 Lines 8387 8387 ======================================= Hits 2317 2317 Misses 6070 6070 ``` | [Files Changed](https://app.codecov.io/gh/JuliaApproximation/ApproxFunBase.jl/pull/554?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=JuliaApproximation) | Coverage Δ | | |---|---|---| | [src/Operators/functionals/Evaluation.jl](https://app.codecov.io/gh/JuliaApproximation/ApproxFunBase.jl/pull/554?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=JuliaApproximation#diff-c3JjL09wZXJhdG9ycy9mdW5jdGlvbmFscy9FdmFsdWF0aW9uLmps) | `43.47% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.