-
Notifications
You must be signed in to change notification settings - Fork 6
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
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 <[email protected]>
I noticed a type instability in
droptol
due to a variable in a closure modified in a loop that could be fixed with a type annotation.