So I found that my build is very slow with CMake when I do install. One package in particular is taking ~1:20 minutes to build and ~1:40 to install.
It's not installing terrabytes of data, and installation is just moving some files around, so I was wondering why it's so slow.
Now I found that if I build with ccache
, I got faster build times even with a cold cache.
Now I looked at the install times, and the package went down to ~40 seconds install time. Still a lot considering CMake is only copying ~50MB, but considerably faster than before.
How can this be? Is there some kind of contention on files that is resolved with ccache?