bytecodealliance / javy

JS to WebAssembly toolchain
Apache License 2.0
2.29k stars 110 forks source link

Regression in performance in statically linked modules #831

Open jeffcharles opened 1 week ago

jeffcharles commented 1 week ago

https://github.com/bytecodealliance/javy/pull/793 introduced a performance regression for statically linked modules because the QuickJS context no longer loads the JS module during pre-initialization. This is unfortunately an expensive step though not enough to trigger our fuel consumption checks in tests.

Some thoughts on how to go about this are to retain the QuickJS runtime in compile_src by wizening when performing that step or augmenting initialize_runtime to also optionally load source code or bytecode.