Skip to content

Use Thin LTO instead of Full LTO#2

Open
asyync1024 wants to merge 1 commit into
Nemris:mainfrom
asyync1024:main
Open

Use Thin LTO instead of Full LTO#2
asyync1024 wants to merge 1 commit into
Nemris:mainfrom
asyync1024:main

Conversation

@asyync1024

Copy link
Copy Markdown

Hello!

I have proposed this change as FLTO is much slower in LLVM than GCC, as it doesn't use partitioning and has limited parallelism.

Thin LTO on the other hand is much faster even than GCC FLTO, and usually uses 0-2% performance, which nobody would notice in normal usage.

This halves the compile time on my machine on a release build. I know, this is seems pointless to add as the absolute time is still low (30s or so) but it shouldn't really take so long for a program of such scale.

Thanks!

@asyync1024

Copy link
Copy Markdown
Author

Also maybe this repository's name can be changed to ndstrim-rs or something like that? Makes it easier to distinguish and search for it explicitly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant