Hitting a new low when compiling HISE on Mac
-
I posted here before about how crazy long it takes to build HISE on my 2020 M1 MacBook Air.
The last Debug build I did a week ago took 59 minutes. But at least it worked. It usually starts very quickly, getting up to 130/140 tasks complete with a minute or so, then the rest of the time is spent on those last few tasks.
I daren't even try a Release build!
However, now I'm trying to compile a Debug build again (after watching David's new HISE 2025 videos) and Xcode has been stuck on the very first "Planning deferred tasks" step for the last 10 minutes.
ClangStatCache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk /Users/dan/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/macosx15.0-24A336-b74dfec4bc4e9d23bc944d435a01a688.sdkstatcache cd /Users/dan/code/HISE/projects/standalone/Builds/MacOSX/HISE\ Standalone.xcodeproj /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk -o /Users/dan/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/macosx15.0-24A336-b74dfec4bc4e9d23bc944d435a01a688.sdkstatcache
This is a new low for me
Any advice?
Machine: 2020 M1 MacBook Air 8GB RAM / Sonoma 14.7 / Xcode 16.0
Using develop branch and latest commit as of writing, which is passing CI.
HISE commit: fix typo a20873ea7a8c00b251ddae7df8d6e3007f8c5f71 -
@dannytaurus wow that's insane. I'm also using a MacBook Air 2020 M1 but I have 16GB and the full Debug rebuild takes 140 seconds - Xcode 16.3 & Sonoma here too.
Compiling is a memory intensive task, but that looks like something is super off on your machine. Have you checked the Activity monitor for swap file activity?
-
@Christoph-Hart Fortunately, restarting my Mac solved the hang on 'Planning deferred tasks' but I'm still compiling very slowly.
Yes, I think swap and memory pressure are an issue. I posted some images and numbers here: https://forum.hise.audio//post/88195
Sounds like it's time to upgrade my machine.