risinglight icon indicating copy to clipboard operation
risinglight copied to clipboard

Enable lto in release profile.

Open arkbriar opened this issue 3 years ago • 3 comments

Enabling LTO is expected to improve the performance. Shall we enable it for profile.release?

arkbriar avatar Feb 17 '22 13:02 arkbriar

+1 for this. PR's welcomed!

skyzh avatar Feb 17 '22 13:02 skyzh

... this also reminds me of my time at AgateDB,

https://github.com/tikv/agatedb/blob/7f6603b1f1641ddbb6eb1265bbcd608368bf105c/Cargo.toml#L42-L50

Maybe we can also apply the above settings to our bench profile.

skyzh avatar Feb 17 '22 13:02 skyzh

I prefer to enable it with a standard benchmark, so that we can know how much performance can be improved by LTO.

TennyZhuang avatar Feb 17 '22 13:02 TennyZhuang