Skip to content

⚡ Bolt: [performance improvement] Optimize AUR builds in build.sh#429

Open
christopherfoxjr wants to merge 1 commit into
mainfrom
bolt-aur-build-optimization-453911367860383067
Open

⚡ Bolt: [performance improvement] Optimize AUR builds in build.sh#429
christopherfoxjr wants to merge 1 commit into
mainfrom
bolt-aur-build-optimization-453911367860383067

Conversation

@christopherfoxjr

Copy link
Copy Markdown
Member

Optimized the AUR package build process in build.sh to reduce ISO creation time.

💡 What:

  • Enabled parallel compilation using MAKEFLAGS="-j$(nproc)".
  • Disabled package compression using PKGEXT='.pkg.tar'.
  • Cleaned up trailing whitespace in build.sh.

🎯 Why:
The current build process uses default makepkg settings which are single-threaded and include a slow compression step. Since AUR packages are built and immediately installed into the ISO rootfs, compression is redundant overhead.

📊 Impact:
Significant reduction (estimated 60-80%) in the time spent building large AUR packages like Calamares.

🔬 Measurement:
Compare the execution time of the AUR build loop in build.sh before and after this change.


PR created automatically by Jules for task 453911367860383067 started by @christopherfoxjr

…ild.sh

This commit speeds up the ISO build process by optimizing the makepkg
calls for AUR packages (calamares, arc-gtk-theme, etc.).

Improvements:
- Added MAKEFLAGS="-j$(nproc)" to enable parallel compilation across
  all available CPU cores.
- Added PKGEXT='.pkg.tar' to skip the expensive package compression
  step, as these packages are installed immediately and the artifacts
  are discarded.
- Fixed trailing whitespace in build.sh.

Expected impact: 60-80% reduction in AUR build time.

Co-authored-by: christopherfoxjr <213370400+christopherfoxjr@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant