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

Performance Improvements #6

Open
DerekStride opened this issue Aug 19, 2021 · 0 comments
Open

Performance Improvements #6

DerekStride opened this issue Aug 19, 2021 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@DerekStride
Copy link
Owner

Related to: #5

Adding a cache works great for development where rebuilding the graphviz files happens on every change. This will allow a user to tweak and update graphs and have the changes take effect. However, the performance hit is maximized on startup or when building in production.

There are a few strategies we can use to alleviate these issues:

  1. Startup performance

To tackle better startup performance we can use a level 2 cache. We can use a temporary file to cache changes to the filesystem which can be reused between sessions.

  1. Production performance

Having the graphviz files around is great for version controlling the graphs. However, at some point we may want to convert these files directly into images and persist them so we don't incur the performance hit at build time in our production environment.

We can use the converter file in a command plugin to enable converting graphs into static images.

bundle exec jekyll graphviz convert --files FILE1[,FILE2[,FILE3...]] --format svg
@DerekStride DerekStride added enhancement New feature or request good first issue Good for newcomers labels Aug 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant