-
-
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
Surprising performance for ^(::Float64, ::Int) vs ^(::Complex128, ::Int) #23804
Comments
The PR in #19890 says:
So I assume the constant powers have to be inferred during compile time. So we could still need the |
For exponents of
See also, #20637 |
This has been fixed. See also #24240 |
With Julia 0.6 I get the following results
So the complex case is faster than the float! #2741 I assume that the
powi
LLVM instruction isn't used by default,but it seems to be used for the complex case (I couldn't find the implementation :/) which is quite odd.Update: Found the complex implementation.
The text was updated successfully, but these errors were encountered: