Skip to content

Conversation

@JeffBezanson
Copy link
Contributor

This cuts more than 1 second off the time to first plot. generate_colorscheme is fairly complex, but for many calls to plot it just returns the same default structure, so we can avoid compiling and running it. My only question is whether a ColorScheme is ever mutated; if so we can add a copy method.

@daschw
Copy link
Member

daschw commented Jun 8, 2020

Nice, thanks!

@daschw
Copy link
Member

daschw commented Jun 8, 2020

ColorSchemes don't get mutated by Plots, not sure about Makie. @asinghvi17 ?

@asinghvi17
Copy link
Member

No, we don't mutate anything directly.

@daschw daschw merged commit 9781c13 into JuliaPlots:master Jun 9, 2020
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.

3 participants