-
-
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
regression in float to int performance on master #18954
Comments
Could be #14763 related, will look into it. |
We should add a set of benchmarks for this. |
@vchuravy, just pushed a PR to BaseBenchmarks. |
I'm getting (using the fancy new benchmark macros from JuliaCI/BenchmarkTools.jl#37): 0.6julia> @btime g(x)
11.714 ms (2 allocations: 30.52 MiB) 0.5julia> @btime g(x)
11.308 ms (2 allocations: 30.52 MiB) So seems fixed? |
Do we know what fixed this? Am considering backporting the original change, but it causes a performance regression in conversion and whatever fixed it was not marked for backporting. |
On 0.5.0:
on master:
The difference in generated code is that
convert
is no longer inlined, and it uses branches instead of eager&
.The text was updated successfully, but these errors were encountered: