-
-
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
improve (restore) performance of fieldname by moving out error paths in separate functions #38921
Conversation
3d60936
to
ef5f0f1
Compare
On my slightly-outdated build (avoiding the JuliaInterpreter breakage...), But certainly getting the string interpolation out into separate calls is a good idea. |
Doesn't it specialize on the type passed in? So what you get from that are the costs for the abstract |
Can we get a nanosoldier test for this? |
This makes it inline again (maybe new inference change to not infer error paths made it not inline anymore) and also improves performance relative 1.5.
Benchmark:
Before (master):
245.346 ns
Before (1.5.2):
4.747 ns
PR:
2.727 ns
Fixes #38920
cc @quinnj