« All posts

Reduced Build Time from 4:34 to 1:08 by Switching to Rust Rolldown Plugin

I reduced my build time from 4:34 to 1:08 by using a Rust rolldown plugin.

While developing a visual novel platform, my build times reached 5 minutes. Profiling revealed that the heavy pre-compression using node:zlib was the culprit. By creating a rolldown plugin in Rust, I utilized native compression libraries, cutting the build time down to 1 minute. This transition has significantly improved efficiency.