{{ message }}
Improve Kotlin performance using Application Class Data Sharing#2423
Open
Yewzir wants to merge 14 commits intocode-golf:masterfrom
Open
Improve Kotlin performance using Application Class Data Sharing#2423Yewzir wants to merge 14 commits intocode-golf:masterfrom
Yewzir wants to merge 14 commits intocode-golf:masterfrom
Conversation
Currently, as before, a pre-built Temurin image from Eclipse Adoptium is being used for this purpose. It works fine with that, but not yet with the new build method. The "--enable-jvm-feature-cds" flag hasn't yielded any positive results yet. I'll see if `strace` can provide more clarity on what's being done later. In any case, the boot time is significantly shorter with the use of Class Data Sharing.
The current way of linking did not take CDS into account and therefore "destroyed" the necessary base archive.
JRaspass
added a commit
that referenced
this pull request
Oct 28, 2025
Shrinks Java-based langs a little, shamelessly taken from #2423
This applies to all languages running on the JVM, except Java itself and Kotlin, of course. This way, all containers to which this applies remain roughly the same size.
Contributor
Author
Yewzir
added a commit
to Yewzir/code-golf
that referenced
this pull request
Nov 8, 2025
This is the essence of what I'm doing with Kotlin in code-golf#2423, among other things. Here too, the acceleration is clearly noticeable.
JRaspass
pushed a commit
that referenced
this pull request
Nov 8, 2025
This is the essence of what I'm doing with Kotlin in #2423, among other things. Here too, the acceleration is clearly noticeable.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



This branch significantly reduces Kotlin's startup time. In the past, we've found that the performance difference between local and server-side execution isn't easy to measure, but I've never seen Kotlin run this fast—almost always faster than live. And I only tested the methods that yielded the least significant improvements in startup time.