This may not be related, but I’ve seen slow builds when building large sites (or sites with lots of images) within VS Code’s integrated terminal. I’m pretty sure this is related to VS Code’s file watcher, but I’ve never dug into it. Typically I’ll test performance from a terminal with VS Code closed.