Gavin Ray
02/11/2022, 7:36 PMjvmTarget
from 1.8
to 17
, and setting the below compiler arguments seems to make a near-zero impact on performance.
Does anyone have experience or suggestions on changes that DO make improvements?
freeCompilerArgs = freeCompilerArgs + listOf(
"-Xlambdas=indy",
"-Xsam-conversions=indy",
"-Xstring-concat=indy-with-constants",
"-Xtype-enhancement-improvements-strict-mode",
"-Xinline-classes",
"-Xnew-inference",
"-Xunrestricted-builder-inference",
"-Xuse-fir",
"-Xuse-fir-extended-checkers"
)
ephemient
02/11/2022, 8:01 PM-Xinline-classes
, -Xnew-inference
are already default. everything aside from indy affects compile time but not runtime. indy lambdas reduce classes but generates classes during bootstrap so that's no different. the runtime difference of indy lambdas is insignificant. the runtime difference of indy string concat is not necessarily positive. https://youtrack.jetbrains.com/issue/KT-50142ephemient
02/11/2022, 8:01 PMGavin Ray
02/11/2022, 8:24 PMFleshgrinder
02/12/2022, 8:16 AMstring-concat=indy-with-constants
is also default with JVM target 9+