Skip to content
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

Fix type instability regression #125

Merged
merged 1 commit into from
Dec 14, 2021
Merged

Conversation

t-bltg
Copy link
Member

@t-bltg t-bltg commented Dec 14, 2021

Fix type instability regression introduced in #124.

using PlotUtils
f() = PlotUtils.optimize_ticks(0.25314125, 0.94421935, k_min = 4, k_max = 8)
f()
@time f()

Before
0.009535 seconds (101.74 k allocations: 1.942 MiB)
After
0.004151 seconds (36.46 k allocations: 694.031 KiB)

@t-bltg t-bltg merged commit 383d532 into JuliaPlots:master Dec 14, 2021
@t-bltg t-bltg deleted the fix_prec branch December 14, 2021 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant