Skip to content

Conversation

@Jolanrensen
Copy link
Collaborator

Fixes #1423 by enabling nested type aliases and replacing all bodiless documentation interfaces with type aliases of Nothing. Type aliases, compared to interfaces, are "transparent" in the JVM, as they don't exist in Java. This saves quite some bytes in the final jar.

With this refactor, we save 400kB :)

@Jolanrensen Jolanrensen added this to the 1.0.0-Beta4 milestone Nov 3, 2025
@Jolanrensen Jolanrensen added KDocs Improvements or additions to KDocs infrastructure GitHub actions, Gradle Scripts, Writerside, etc. labels Nov 3, 2025
@koperagen
Copy link
Collaborator

Very cool!

# Conflicts:
#	core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/documentation/DocumentationUrls.kt
@Jolanrensen
Copy link
Collaborator Author

just need to check notebooks etc don't have issues with nested typealiases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure GitHub actions, Gradle Scripts, Writerside, etc. KDocs Improvements or additions to KDocs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace documentation interfaces with (nested) typealiases to shrink jar size

3 participants