Looks like standard Kotlinx Serialization 1.6.2 no...
# webassembly
j
Looks like standard Kotlinx Serialization 1.6.2 now works for Wasm target (https://github.com/Kotlin/kotlinx.serialization/releases/tag/v1.6.2)
❤️ 14
K 6
s
If somebody has some data points about how much Wasm size it adds (with all the dead code elimination options enabled) to for example serialize/deserialize JSON, I would be interested to know.
j
have updated Wasm based Compose for Web modules in https://github.com/joreilly/BikeShare and https://github.com/joreilly/PeopleInSpace to use that.....hopefully getting to point soon where those can depend on common dependencies!
👍 2
r
@sdeleuze In my project it adds 102 KB (with serialization only), 166KB (with deserialization only) and 179KB (with both serialization and deserialization).
thank you color 2
s
Looks not too bad, but not amazing for a compile time approach. I would be curious to know if there are low hanging fruit identified by the Kotlin serialization team to reduce the runtime footprint.
Or if optimization would be more on the Wasm specific side.
b
@Robert Jaros is it prod build? Have you applied binaryen?
r
Yes. Production build with agressive binaryen optimization.
👍 1
🙏 1