ssnt icon indicating copy to clipboard operation
ssnt copied to clipboard

add release optimization options

Open Fogapod opened this issue 2 years ago • 4 comments

a test to see how much it changes CI compile time

Fogapod avatar Nov 07 '23 21:11 Fogapod

This did not affect build time (unless i did something wrong) but might improve performance in release mode

Fogapod avatar Nov 07 '23 22:11 Fogapod

Do you have any kind of record of how the performance changed? (ex. FPS, server cpu usage)

Alainx277 avatar Nov 15 '23 17:11 Alainx277

forfree at least for #26 adding these 2 options results in huge boost 😄

Fogapod avatar Nov 19 '23 10:11 Fogapod

Added strip option as well. It decreases executable size significantly.

Docker build times comparisons on local machine (includes downloading git and crates.io files on my slow internet):

Without release options: strip = false Finished release [optimized] target(s) in 2m 45s - first stage Finished release [optimized] target(s) in 1m 28s - second stage Exucutable: 36.2M

With release options: strip = true Finished release [optimized] target(s) in 2m 20s - first stage Finished release [optimized] target(s) in 3m 50s - second stage Exucutable: 17.2M

With release options: strip = "debuginfo" Finished release [optimized] target(s) in 2m 08s - first stage Finished release [optimized] target(s) in 3m 52s - second stage Executable: 21.0M

Fogapod avatar Nov 20 '23 16:11 Fogapod