<@U1ZQ36CJD> noticed you discussed about performan...
# serialization
e
@spierce7 noticed you discussed about performance in https://github.com/Kotlin/kotlinx.serialization/issues/907 Wonder if you tried again with 1.9.0 (or dev builds), and what your approach has been since then.
With Kotlin 1.9.0
With Kotlin 1.3.72
With Kotlin 1.8.22
Well, seems we're heading to the right direction! Thanks to the JS team thank you color
Latest dev build for 1.9.20 seems almost on-par with 1.9.0. Maybe slightly higher numbers.
I've re-enabled back dynamic parsing (with
Json.decodeFromDynamic
), and you can shave off another 5 ms
s
@Edoardo Luppi you should try it again with es6 compilation in 1.9.0. It's a new option, and I noticed the JS it produces is much cleaner.
Copy code
tasks.withType<KotlinJsCompile>().configureEach {
  kotlinOptions {
    moduleKind = "es"
    useEsClasses = true
  }
}
e
@spierce7 true, but the production code is the same, so no changes. If the KotlinJS team keeps pushing to better performance, we should be good. I'd say I'm good already at this point, at least for the MVP I'm building
🙏🏾 1
s
😞