Skip to content
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

Compile with LTO (suggestion) #701

Closed
phkahler opened this issue Sep 17, 2020 · 0 comments · Fixed by #713
Closed

Compile with LTO (suggestion) #701

phkahler opened this issue Sep 17, 2020 · 0 comments · Fixed by #713

Comments

@phkahler
Copy link
Member

phkahler commented Sep 17, 2020

I've tried adding the following to CMakeLists.txt on line 24.

set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)

On my linux build I get about 33 percent reduction in time for a benchmark I've been using (12sec vs 18). The frame rate while dragging is also perceptibly smoother.

I'm not sure if this is supported on all platforms or where the ideal place to put it is, so I'd like to hear from either a CMAKE guru or enough discussion to make a determination about it. We also don't want the added build time for debug builds.

Thanks!

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

Successfully merging a pull request may close this issue.

1 participant