ilya-zlobintsev / LACT

Linux GPU Configuration Tool
MIT License
1.44k stars 34 forks source link

Set codegen-units=1 to decrease binary size in release #390

Closed In-line closed 1 month ago

In-line commented 1 month ago

Before

❯ ls -lah target/release/lact         
-rwxr-xr-x 2 codemonkey codemonkey 6.9M Oct 22 18:45 target/release/lact

After

❯ ls -lah target/release/lact
-rwxr-xr-x 2 codemonkey codemonkey 6.4M Oct 22 18:46 target/release/lact
In-line commented 1 month ago

There is no compilation time difference in my system

ilya-zlobintsev commented 1 month ago

The release build compile times are dominated by LTO anyway, so this makes sense.