Fix type instability in chebinterp#19
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #19 +/- ##
=======================================
Coverage 96.20% 96.20%
=======================================
Files 5 5
Lines 237 237
=======================================
Hits 228 228
Misses 9 9 ☔ View full report in Codecov by Sentry. |
|
Thanks! I'm a bit unclear why |
|
Without the annotation the inferred type becomes MWEThe last three lines present the type-instability Analyzing the closure with Cthulhu shows that |
|
This https://docs.julialang.org/en/v1/manual/performance-tips/#man-performance-captured Maybe better to use a |
Co-authored-by: Steven G. Johnson <stevenj@mit.edu>
I noticed a type instability in
droptoldue to a variable in a closure modified in a loop that could be fixed with a type annotation.