上游 · Kotlin/Native memory management
To enable it, set the following option in your gradle.properties file:
kotlin.native.binary.latin1Strings=true
With the Latin-1 support, strings are stored in Latin-1 encoding as long as all the characters fall within its range. Otherwise, the default UTF-16 encoding is used.
While the feature is Experimental, the cinterop extension functions String.pin , String.usePinned , and String.refTo become less efficient. Each call to them may trigger an automatic string conversion to UTF-16.
If none of these options helped, create an issue in YouTrack .…