Bud Build Speed

Hi all,

I have created a new copy of Sage 10.
(composer create-project roots/sage your-theme-name dev-main)
Run yarn, and then yarn build.
The build process on average takes around a minute on average (48s below but has been over a minute during another build test), does this seem normal?

E.g

yarn build
yarn run v1.22.5
$ bud build
[99%] [cache] › begin idle

┌ assets ──────────────────────────────────┐
│                                          │
│   name                 hot    size       │
│                                          │
│   app.521c12.css       ✘      4.03 kB    │
│                                          │
│   runtime.194772.js    ✘      1.24 kB    │
│                                          │
│   editor.5f39da.js     ✘      769 bytes  │
│                                          │
│   app.f5abda.js        ✘      623 bytes  │
│                                          │
│   manifest.json        ✘      171 bytes  │
│                                          │
│   entrypoints.json     ✘      162 bytes  │
│                                          │
│   wordpress.json       ✘      33 bytes   │
│                                          │
│   editor.31d6cf.css    ✘      0 bytes    │
│                                          │
│                                          │
└──────────────────────────────────────────┘
[99%] [cache] › shutdown
[process] › ℹ  info      exit
Done in 48.30s.

Windows 10 - WSL2 - Ubuntu 20.04.4 LTS
Node v16.14.1
Yarn 1.22.5

Cheers.

Hey,

In my case build process always takes longer no matter that is bud, laravelmix or next js.
For me more important is dev mode “yarn dev” and watching changes and in bud is actually super fast.

2 Likes

Cheers for the info @Jacek

For what it’s worth. It seems to be performing very quickly now.

yarn run v1.22.5
$ bud build
[99%] [cache] › begin idle

┌ assets ──────────────────────────────────┐
│                                          │
│   name                 hot    size       │
│                                          │
│   app.13ebca.css       ✘      4.05 kB    │
│                                          │
│   runtime.194772.js    ✘      1.24 kB    │
│                                          │
│   editor.5f39da.js     ✘      769 bytes  │
│                                          │
│   app.f5abda.js        ✘      623 bytes  │
│                                          │
│   manifest.json        ✘      171 bytes  │
│                                          │
│   entrypoints.json     ✘      162 bytes  │
│                                          │
│   wordpress.json       ✘      33 bytes   │
│                                          │
│   editor.31d6cf.css    ✘      0 bytes    │
│                                          │
│                                          │
└──────────────────────────────────────────┘
[99%] [cache] › shutdown
[process] › ℹ  info      exit
Done in 2.29s.
paul@Paul-Laptop:/var/www/slate.test/web/app/themes/slate$

I think this may be because I was previously using PHP 8.
I reverted back to PHP 7.4.3 as with 8 I was receiving lots of Composer/Yarn warnings and I also had to keep making mods to files to get it all set up and working. PHP 7.4.3 seems fairly smooth sailing.

1 Like