corretto / corretto-17

Amazon Corretto 17 is a no-cost, multi-platform, production-ready distribution of OpenJDK 17
GNU General Public License v2.0
217 stars 51 forks source link

LTO Binaries #128

Open airbnb-gps opened 1 year ago

airbnb-gps commented 1 year ago

Is your feature request related to a problem?

Performance

Describe a solution you would like

OpenJDK's configure has a link-time-opt feature (--with-jvm-features=link-time-opt) that will engage LTO to hopefully improve performance of produced binaries. Corretto's official binary distributions (produced through its custom Gradle build system) don't enable LTO.

Should it? If not, why?

Describe alternatives you have considered

Leaving things the way they are.

navyxliu commented 1 year ago

hi, @airbnb-gps

Do you have performance data about LTO? for long-haul java services, most of time is in JIT-generated code. I am not sure how much we would gain from LTO.

we will discuss this idea and get you back.