mise icon indicating copy to clipboard operation
mise copied to clipboard

Someway to decrease build time?

Open M1kep opened this issue 1 year ago • 3 comments

When installing on Arch Linux via yay, the build time is ~4 minutes.

Is there some way to provide builds for this to the AUR setup, or decrease build times?

I realize 4 minutes isn't that much, but it's consistently 4-5x as long as the rest of the system update process.

M1kep avatar Mar 25 '24 04:03 M1kep

Memory usage also seemed to have exploded over the past releases. I am running an older secondary arch system with only 4gb of ram and when trying to compile, the entire system freezes. I didn't have the time to investigate further but using the mise-bin package obviously helped by avoiding compiling

suicide avatar Mar 29 '24 01:03 suicide

yeah if possible using binary packages is better. You can also try changing settings like lto. I'd accept a PR for a new profile like "fast-release" or something that we could use for things like AUR.

jdx avatar Mar 30 '24 17:03 jdx

Switching to thin LTO helps to speed up the build process quite a lot indeed: on my machine instead of 1m17s it becomes 20s. Disabling LTO completely doesn't make it any quicker though.

I wonder, how much worse the performance is with thin LTO instead of fat? So far I noticed that the binary is 4M smaller with fat LTO.

kevindetry avatar Apr 11 '24 20:04 kevindetry

lto is now disabled by default

jdx avatar May 14 '24 04:05 jdx