JuliaDiff / SparseDiffTools.jl

Fast jacobian computation through sparsity exploitation and matrix coloring
MIT License
240 stars 42 forks source link

function barrier reduces impact of type instability #196

Closed baggepinnen closed 2 years ago

baggepinnen commented 2 years ago

Looping over t caused lots of allocations. This PR introduces a function barrier that lessens the impact of this to almost negligible

codecov-commenter commented 2 years ago

Codecov Report

Merging #196 (9c75bb6) into master (2e9dfed) will increase coverage by 0.08%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #196      +/-   ##
==========================================
+ Coverage   80.64%   80.73%   +0.08%     
==========================================
  Files          15       15              
  Lines         863      867       +4     
==========================================
+ Hits          696      700       +4     
  Misses        167      167              
Impacted Files Coverage Δ
src/differentiation/compute_jacobian_ad.jl 90.00% <100.00%> (+0.16%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.