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

Rework compression for faster build #615

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

limzykenneth
Copy link
Member

astro-compress leaves too much possible performance on the table by not processing images concurrently. This version tries to do this as much as possible, one possible bottle neck is IO. Possible way to optimize this is through utilizing streams but will require temporary write location.

Better build console output would be needed as well.

@limzykenneth
Copy link
Member Author

Build time decreased from last deployed 1180.74s to 788.50s in CI. About 461.65s on my computer. GitHub Actions likely don't provide as much processing power but it should make things a bit more speedy unless we ever want to use GitHub Actions build artifacts.

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