-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
specialize on type in getindex for types #18025
Conversation
Not sure we have benchmarks for this but @nanosoldier |
Just discuss about something and someone else implements the fix. I hope fixing issues is always as easy as this. =) Also ref for a similar change #18009 |
It might be worth doing a search through all the |
This now seems to be the general 0.5 performance trick. Has the specialization heuristics generally changed since 0.4? As I read it, this method was basically the same in 0.4. |
Your benchmark job has completed - possible performance regressions were detected. A full report can be found here. cc @jrevels |
The inline heuristic might have changed. |
There also seems to be some type inference/codegen issue related to |
Is there an issue for that @yuyichao? |
No, this fix didn't address what is broken or why, but it just addresses one of the symptoms. The actual problem is that the fast path in |
Fixes #18021. From 3.65 -> 0.25 seconds in the benchmark code in the linked issue.
Ref #17798 for similar correction
Fix found by eavesdropping on a discussion by @vtjnash and @yuyichao :)