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

Improving build performance #345

Merged
merged 2 commits into from May 8, 2024
Merged

Conversation

limzykenneth
Copy link
Member

Fixes #340

Three of the most time consuming functions are now memoized using lodash/memoize which significantly pared down the build time for reference and sketches. For dev server the behavior does not seem to be affected as there seem to be a server restart on content changes, ie. updating content (including translation) will trigger a content refresh with updated content.

In addition, the image service used by Astro on build is switched to using passthroughImageService as it is doing duplicate task of astro-compress. Passing through speed things up slightly from a clean build and just let astro-compress do its thing.

@limzykenneth
Copy link
Member Author

@outofambit If you'd like to have a look at this to make sure things are not broken.

@outofambit
Copy link
Collaborator

@limzykenneth i tried this out locally and seems great. the build time on this PR's CI run sure is short :D

@limzykenneth limzykenneth merged commit 82ad70e into processing:main May 8, 2024
4 checks passed
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.

Build optimization
2 participants