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

Only set HoloViews backend in first extension call #5880

Merged
merged 2 commits into from
Jan 12, 2024

Conversation

philippjfr
Copy link
Member

hv.Store.set_current_backend can be a fairly expensive operation (around 40ms) and does not have to be run each time. So unless the backend does not match the current backend we do not rerun it each time.

panel/config.py Outdated Show resolved Hide resolved
Copy link

codecov bot commented Nov 15, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0482e43) 84.43% compared to head (680bf5d) 72.26%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #5880       +/-   ##
===========================================
- Coverage   84.43%   72.26%   -12.17%     
===========================================
  Files         298      298               
  Lines       44620    44620               
===========================================
- Hits        37676    32246     -5430     
- Misses       6944    12374     +5430     
Flag Coverage Δ
ui-tests ?
unitexamples-tests 72.26% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@philippjfr philippjfr merged commit d29f5eb into main Jan 12, 2024
10 of 15 checks passed
@philippjfr philippjfr deleted the set_hv_backend_once branch January 12, 2024 16:12
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