-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Isn't lto = true
a bit of an overkill?
#131
Comments
It's mostly about the size, not performance, because consuming kak-lsp as a pre-compiled binary is still the primary use-case. And though it's only 12% / 0.8MB difference, cutting it costs me nothing when I prepare release, I'd like to continue to do it. I wonder if cargo allows to make profile configuration dependent on feature argument. Then |
I'm reasonably sure you can do something with |
As a package maintainer I also prefer to build with LTO, I don't mind an extra build time and I'm building in an isolated environment so manually creating some config files would be less than ideal. Is it possible to enable or disable LTO via a command line argument to |
Uhh 😞 By the way, does |
I lean towards keeping LTO enabled by default for now as releases are considered to be primary way to use kak-lsp. That said, I'm totally open for having any extra configs, scripts, whatever which would make |
This could be a Makefile, ideally you and me would just run If you find a good way to enable/disable LTO on the spot, I can help with the Makefile, not an expert myself but I know where to find examples 😄 |
Hopefully this can be fixed by a custom release profile once rust-lang/cargo#6988 is implemented. |
It increases incremental compilation time from 0:17.27 to 1:00.80 on my machine and it doesn't seem to me that
kak-lsp
routing network calls back and forth is going to benefit from any marginal runtime speedup.On the other hand faster recompilation time would mean users of
plug.kak
will wait shorter on:plug-update
.The text was updated successfully, but these errors were encountered: