Enable Link-Time Optimization (LTO) for the Tauri part #95
zamazan4ik
started this conversation in
Ideas
Replies: 1 comment
-
|
Thank you for reporting the issue |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I noticed that in the
Cargo.tomlfile for the Tauri part, Link-Time Optimization (LTO) for the project is not enabled. I suggest switching it on since it will reduce the binary size (always a good thing to have) and will likely improve the application's performance a little bit.I suggest enabling LTO only for the Release builds so as not to sacrifice the developers' experience (since during the development process usually the Dev profile is used) while working on the project since LTO consumes an additional amount of time to finish compilation.
Basically, it can be enabled with the following lines:
According to the official Tauri documentation, you may also be interested in enabling other optimizations as well.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions