-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Optimize Kotlin reflection runtime efficiency #21546
Copy link
Copy link
Open
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: blockedAn issue that's blocked on an external project changeAn issue that's blocked on an external project changetheme: kotlinAn issue related to Kotlin supportAn issue related to Kotlin supporttype: enhancementA general enhancementA general enhancement
Milestone
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: blockedAn issue that's blocked on an external project changeAn issue that's blocked on an external project changetheme: kotlinAn issue related to Kotlin supportAn issue related to Kotlin supporttype: enhancementA general enhancementA general enhancement
Type
Fields
Give feedbackNo fields configured for issues without a type.
kotlin-reflectis a big 2 MB JAR, producing important CPU and memory spikes at startup on the JVM.It would be interesting to explore if it could be replaced by a lighter incarnation like https://github.com/Kotlin/kotlinx.reflect.lite or use
kotlinx-metadata-jvmat build time to generate some kind of reflection index.jackson-module-kotlinshould also work with similar approach (not blocking now that we have Kotlin Serialization support).