thin-lto 1 on rustc works well and has almost no impact on compile time. codegen_units=1 2 will be slower to compile but will produce faster code and smaller binaries.