Hey friends! I could use some knowledgeable experience about how to take some next steps understanding why an app’s build and rebuild is so slow. I’ve looked through the indicators that I know of (ember build output and heimdall viz, accessible below) but I’m not sure how to translate those to next steps.
Are there resources on how to translate the information here to actions I can take? What’s the best indicator to choose to dig in on that will have the biggest payoff?
You include initial and rebuild times, but I’m curious how the initial build time breaks down between “cold” and “warm” initial boot. Can you share the results of:
rm -rf node_modules
yarn # or npm ci
ember s # the time for this first build would be the "cold initial" time
<Ctrl-C>
ember s # the time for this would be the "warm initial" time
I’m also curious what the rebuild times are per file type. In the times you gave above, it seemed that both JS (for concat) and Sass were taking non-trivial time during rebuild, but I would have expected a .js file triggered rebuild to take essentially no time in Sass compilation.
Honestly, it seems totally okay for cold/rebuild timings. We have pretty big apps as well, max-optimized for builds, excluding all redundant modules/files, etc. And we even get higher build times in some cases. We kinda ok with that, got used to it (unless Ember CLI may handle it better, like replacing broccoli maybe ;-)).