bytecodealliance / bytecodealliance/jco

Performance

Open
#417 0 comments 4 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1k
Forks
134
Avg merge
11h 13m
Merged PRs (30d)
232

Description

Jco has prioritised correctness over performance. As adoption grows, we will need to investigate performance more carefully, both for code generation and for host call overhead.

The first step here would be to obtain suitable performance benchmarks. The conformance test suite itself may be suitable for treating as a benchmark, but more dedicated benchmark components with predictable runtime performance would be beneficial here.

With benchmarks in place it would then be possible to explore:

* The performance benefits of [low-level bindgen implementation](https://github.com/bytecodealliance/jco/blob/main/docs/src/optimized-host-bindings.md)
* Code generation optimizations
* The viability and benefit that might be incurred from native implementations of WASI, either through NAPI or through direct host integration via [uvwasi](https://github.com/nodejs/uvwasi)

There is potentially a lot of low-hanging fruit from a performance perspective, and it has not been a major priority yet. Hopefully this issue can point towards steps to take as users seek more investment here.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.