DevelBlockchain / bywise

Bywise is an enterprise-grade permissioned Distributed Ledger Technology (DLT), Blockchain for developing solutions and applications. Its modular and versatile design suits a wide range of industry use cases. It offers a unique approach to consensus that enables performance at scale while preserving privacy.
https://bywise.org
MIT License
12 stars 0 forks source link

Use WASMI with QuickJS #37

Open felipemarts opened 2 weeks ago

felipemarts commented 2 weeks ago

Replace default WebAssembly runtime NodeJS for wasmi

https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/from-variant.ts#L245

Read issue: #32

Lohann commented 5 days ago

Just one point, WASMI is an interpreter, so you will be running an Javascript interpreter inside a webassembly interpreter, so expect the code to be at least 100x slower 😛

You can see a comparison here: https://www.youtube.com/watch?v=lCjbpryZ7LA&t=2848s