JetBrains / kotlin-native

Kotlin/Native infrastructure
Apache License 2.0
7.02k stars 566 forks source link

Optimize CPointer.toKStringFromUtf8 on Native #4708

Closed SvyatoslavScherbina closed 3 years ago

SvyatoslavScherbina commented 3 years ago

Use strlen and stop allocating intermediate ByteArray to make the performance comparable to ByteArray.decodeToString().

Partially fix KT-44357.