-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
Base.exp(::Complex) is 100x slower when Plots is loaded #548
Comments
This is an unfortunate bug in julia 0.5.There is a PR to fix it JuliaLang/julia#18869 and will thus be fixed when 0.5.1 comes out. It is not directly related to Plots.jl |
I think this is a known Julia bug. We found the root cause a month ago, but On Saturday, October 22, 2016, adambrewster notifications@github.com
|
Thank you. |
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3 to 4. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](codecov/codecov-action@v3...v4) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
I don't know if this is a julia problem or a plots problem, but loading the Plots module makes computing complex exponentials slow.
Here's a small test program:
Baseline (no modules loaded):
With plots, it's almost 100x slower:
FixedSizeArrays is a dependency of Plots and adds a method to Base.exp. I thought that it might be at fault. With FixedSizeArrays (and all of the other dependencies of Plots) loaded, it's not slow.
I profiled both versions. Here's the baseline:
And here's the slow version:
For reference, here's line 412 of julia/base/complex.jl:
I can't see any reason why Plots should affect this, but I thought I'd ask if there's something I'm missing before posting this as a julia bug.
Any ideas?
The text was updated successfully, but these errors were encountered: