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

No exception thrown in apply_recipe fallback #3765

Merged
merged 5 commits into from
Aug 26, 2021

Conversation

BioTurboNick
Copy link
Member

@BioTurboNick BioTurboNick commented Aug 25, 2021

Throwing an exception here can vastly slow down plotting, as it happens frequently. Returning an error value instead, which the calling function can check, can speed up plotting 2x. An accompanying change (JuliaPlots/RecipesPipeline.jl#95) is necessary in RecipesPipeline.jl, assuming this value is suitable.

Throwing an exception here can vastly slow down plotting, as it happens frequently. Returning an error value instead, which the calling function can check, can speed up plotting 2x. An accompanying change is necessary in RecipesPipeline.jl, assuming this value is suitable.
BioTurboNick added a commit to BioTurboNick/RecipesPipeline.jl that referenced this pull request Aug 25, 2021
@BioTurboNick
Copy link
Member Author

BioTurboNick commented Aug 25, 2021

An alternative would be to have an API to check if a recipe exists prior to applying it, but that would break existing usage I think.

@t-bltg
Copy link
Member

t-bltg commented Aug 26, 2021

Let's wait a few minutes for JuliaRegistries/General#43596 to be merged.

@codecov
Copy link

codecov bot commented Aug 26, 2021

Codecov Report

Merging #3765 (3a7b601) into master (5afeba6) will increase coverage by 0.03%.
The diff coverage is n/a.

❗ Current head 3a7b601 differs from pull request most recent head ce02fee. Consider uploading reports for the commit ce02fee to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3765      +/-   ##
==========================================
+ Coverage   63.30%   63.34%   +0.03%     
==========================================
  Files          28       28              
  Lines        7377     7360      -17     
==========================================
- Hits         4670     4662       -8     
+ Misses       2707     2698       -9     
Impacted Files Coverage Δ
src/recipes.jl 59.23% <ø> (ø)
src/utils.jl 54.82% <0.00%> (-0.08%) ⬇️
src/backends/gaston.jl 0.00% <0.00%> (ø)
src/backends/gr.jl 89.48% <0.00%> (+0.08%) ⬆️
src/args.jl 74.24% <0.00%> (+0.21%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5afeba6...ce02fee. Read the comment docs.

@t-bltg t-bltg merged commit 5acf967 into JuliaPlots:master Aug 26, 2021
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.

2 participants