By thebeedevs on Skatehive
Developers' Guide: How Wax Lost Weight ποΈ Developers' Guide: How Wax Lost Weight ποΈ Hey Hive community! π As promised in this article below is detailed info how we did it. Enjoy ! π€ For the Nerds: Technical Deep Dive We imagine you might be interested in how we achieved such a significant size improvement in a project as complex as the Wax library (which mixes core Hive C++ code with TypeScript/JavaScript interfaces). Below, we share the key steps and ideas behind this "magic" change. Our old motto is: It's not a big deal to achieve complex goals by using lots of source code and dependenciesβthe real trick is simplicity and a minimal amount of code (both source and generated binary) to limit maintenance, resource consumption, and execution costs... Since the size of the Wax NPM package was mostly dominated by the internally held WASM code, focusing on reducing this part was the obvious decision. Step 1: Improved emSDK Toolchain The Emscripten toolchain we use to build the C++ porti