What optimizations can are still yet to be done fo...
# webassembly
s
What optimizations can are still yet to be done for the JetBrains team for WASM? Is tree shaking in yet?
s
Tree shaking is in, and there’s probably some room for improvement. We have some ideas for other things, but not a concrete list of pending optimizations. We’ll evaluate the priority based on real app benchmarks and figure out the the best place for them to be done. It could be a library code, binaryen, Wasm engine, or Kotlin compiler.
s
Any idea how the current size compares to the same application in JS?
👀 1
o
See remarks about sizes in the "Changes" section here: https://github.com/OliverO2/compose-counting-grid
r
@spierce7 a hello world app written in Kilua compiled with K/JS - 422KB, compiled with K/Wasm - 497KB (.wasm) + 17KB (.js).
You can checkout and play yourself: https://github.com/rjaros/kilua
b
@Robert Jaros I guess it’s uncompressed size, right? Could you please check size after
brotli --best
?
r
Can I use it from gradle somehow ?
Or you just want me to run the command on the wasm file?
It's 111KB
🙏 1
To stay on topic, JS is still a few bytes ahead with 94KB.
🙏 1