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

feat: cache third party rendered images #270

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

mfontanini
Copy link
Owner

The mermaid snippet rendering introduced in #268 works but the mermaid cli is very slow so every modification to the presentation while developing is painfully slow. This adds caching at the third party image render layer. Images already live forever, this just uses a hashmap from the input string -> the image itself. We could also hash the inputs but that adds another dependency and inputs should be small enough that this would be negligible.

cc @mikavilpas

@mfontanini mfontanini merged commit 61f3ce5 into master Jun 20, 2024
6 checks passed
@mfontanini mfontanini deleted the feat/cache-third-party-renders branch June 20, 2024 02:43
@mikavilpas
Copy link
Contributor

👍🏻👍🏻

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.

None yet

2 participants