Substrate builds are resource intensive! Even with the rust toolchain getting better over time, it commonly takes 20+ minutes on mid-tier retail hardware (at the time of writing) to get Cumulus based parachains to build for production use.
The Rust performance book has a few hints that might help to tweak you builds, but to keep things on an even playing field, please just use the default rust & cargo settings on your machine and post:
- Machine details (OS & version, CPU specs, RAM & speed, SSD & speed)
rustup show && rustup +nightly show)
- Version tag of the Parachain Template you build (ex:
Gather this info and close all processes possible to have all resources devoted to your build.
Finally build that template using:
# No cheating ;) cargo clean # Get all files first, not confusion on build times cargo fetch # Release optimized build, with detailed timing messages included cargo b -r --timings
Post your details and the resulting HTML (in
target/cargo-timings/)file's header table info (best to do by viewing in a browser), and copy/paste the CPU load graph here to show off your rigs' build power!