p5.js-website icon indicating copy to clipboard operation
p5.js-website copied to clipboard

Rework compression for faster build

Open limzykenneth opened this issue 1 year ago • 1 comments

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 avatar Oct 20 '24 20:10 limzykenneth

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.

limzykenneth avatar Oct 20 '24 21:10 limzykenneth

@davepagurek If you have the time, do have a try to build from this PR and see if there are any problems. The overall build time should be about half as before now. No worries if you are busy with other stuff though as this is not urgent.

limzykenneth avatar Jan 24 '25 12:01 limzykenneth

I've checked it locally, works!

ksen0 avatar Jan 29 '25 18:01 ksen0