When building a K/N library, do all varieties of K...
# kotlin-native
j
When building a K/N library, do all varieties of Kotlin classes (i.e. data class/class/etc.) all get compiled into plain old obj-c classes? I ask because I am currently using a data class to represent a graph that stores a large amount of data (including nested data classes of various types), and performance on the macOS side - even just accessing instances of that class - becomes extremely slow as the number of nodes stored in an instance grows.
m
Data classes are represented in objc (with all those copy methods etc). Not sure how that affects performance, though. You can easily check in xcode how they look when they are compiled to objc.