About disabled Link-Time Optimization (LTO) #946
Unanswered
zamazan4ik
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I found that Mistral devs disabled LTO in this PR: #741 - before this PR LTO was enabled for the project. I wonder - what was the reason for such a decision? I tried to find any information in the commit history but with no success.
I am asking about it since according to my local tests with the latest Mistral, on Fedora 41 + Rust 1.83 I see at least noticeable binary size improvements with enabling LTO by
lto = true
(all other Release settings remain the same):mistral-server
: from 54 Mib to 44 Miblibmistrals.so
: from 39 Mib to 31 MibI haven't performed performance measurements yet but I expect at least the same performance as before enabling LTO (or maybe even some improvements).
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions