8000 Cache ESM render modules by philippjfr · Pull Request #7827 · holoviz/panel · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Cache ESM render modules #7827

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

Merged
merged 3 commits into from
Apr 3, 2025
Merged

Cache ESM render modules #7827

merged 3 commits into from
Apr 3, 2025

Conversation

philippjfr
Copy link
Member
@philippjfr philippjfr commented Apr 3, 2025

ESM components create ESM modules that contain the rendering logic. These modules were previously created on each View because they templated the id of the Model that was being rendered. However, we can simply pass the id to the render function instead and then cache the render module, reducing the number of dynamically created modules significantly.

Copy link
codecov bot commented Apr 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.09%. Comparing base (961dc2b) to head (d610185).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7827      +/-   ##
==========================================
+ Coverage   87.08%   87.09%   +0.01%     
==========================================
  Files         346      346              
  Lines       52941    52941              
==========================================
+ Hits        46102    46110       +8     
+ Misses       6839     6831       -8     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@philippjfr philippjfr enabled auto-merge (squash) April 3, 2025 10:34
@philippjfr philippjfr disabled auto-merge April 3, 2025 10:36
@philippjfr philippjfr merged commit 94ce6ca into main Apr 3, 2025
17 of 18 checks passed
@philippjfr philippjfr deleted the cache_render_modules branch April 3, 2025 10:36
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
0