serpent-os / boulder-d-legacy

Replaced by Rust tooling
https://serpentos.com
21 stars 7 forks source link

Fakeroot significantly slows down builds (especially when ccache is enabled) #69

Open joebonrichie opened 1 year ago

joebonrichie commented 1 year ago

Using curl as a test pkg

ccache? Full ccache? Fakeroot? Time
no N/A yes ~15secs
no N/A no ~13secs
yes no yes ~25secs
yes yes yes ~13secs
yes no no ~17secs
yes yes no ~12secs

When building a slightly larger package such as glibc

ccache? Full ccache? Fakeroot? Time
no N/A yes ~4mins
yes no yes ~13mins
yes yes yes ~3mins

We can see there is a huge penalty when fakeroot is enabled especially when the ccache cache is empty.

Need to explore options to getting rid of fakeroot most likely, the penalty is too large.