-
Notifications
You must be signed in to change notification settings - Fork 624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve performance of JSON encoding #1354
Conversation
294b4f2
to
034e121
Compare
I suppose it's not really clear where all these improvements came from, so feel free to ask for additional comments, meanwhile, I'll try to document all my finding separately |
formats/json/commonMain/src/kotlinx/serialization/json/internal/Composers.kt
Show resolved
Hide resolved
formats/json/commonMain/src/kotlinx/serialization/json/internal/StringOps.kt
Show resolved
Hide resolved
formats/json/jvmMain/src/kotlinx/serialization/json/internal/CharArrayPool.kt
Show resolved
Hide resolved
formats/json/jvmMain/src/kotlinx/serialization/json/internal/JsonStringBuilder.kt
Outdated
Show resolved
Hide resolved
formats/json/jvmMain/src/kotlinx/serialization/json/internal/JsonStringBuilder.kt
Show resolved
Hide resolved
formats/json/nativeMain/src/kotlinx.serialization.json.internal/JsonStringBuilder.kt
Outdated
Show resolved
Hide resolved
formats/json/jvmMain/src/kotlinx/serialization/json/internal/JsonStringBuilder.kt
Outdated
Show resolved
Hide resolved
formats/json/jvmMain/src/kotlinx/serialization/json/internal/JsonStringBuilder.kt
Show resolved
Hide resolved
formats/json/jvmMain/src/kotlinx/serialization/json/internal/CharArrayPool.kt
Show resolved
Hide resolved
These perf wins look great! Out of curiosity, how many of the JSON<>String perf wins from 1.2 also apply to JSON<> |
@ankushg No, dynamic conversion is a different code part |
Performance improvements, the same machine, Java 11: