diff options
| author | Henry Gressmann <mail@henrygressmann.de> | 2024-01-28 14:30:39 +0100 |
|---|---|---|
| committer | Henry Gressmann <mail@henrygressmann.de> | 2024-01-28 14:30:39 +0100 |
| commit | 51d0c63f7e6d65204d6fe4ec3c378ef3fbedf119 (patch) | |
| tree | 9700a1b1864005c5f852bf7e50a8f50912150146 /README.md | |
| parent | f26a0caadab5da373c00ed1269c98d58fec3dec0 (diff) | |
docs: architecture
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -5,7 +5,7 @@ <h1>TinyWasm</h1> A tiny WebAssembly Runtime written in Rust </div> - + <br> [](https://docs.rs/tinywasm) [](https://crates.io/crates/tinywasm) [](./LICENSE-APACHE) @@ -18,7 +18,6 @@ Some APIs to interact with the runtime are not yet exposed, and the existing one Results of the tests can be found [here](https://github.com/explodingcamera/tinywasm/tree/main/crates/tinywasm/tests/generated). TinyWasm is not designed for performance, but rather for size and portability. However, it is still reasonably fast. -There are a couple of low-hanging fruits on the performance side, but they are not a priority at the moment. ## Supported Proposals @@ -55,9 +54,11 @@ $ cargo add tinywasm Enables logging using the `log` crate. This is enabled by default. - **`parser`**\ Enables the `tinywasm-parser` crate. This is enabled by default. +- **`unsafe`**\ + Uses `unsafe` code to improve performance, particularly in Memory access With all these features disabled, TinyWasm only depends on `core`, `alloc` and `libm` and can be used in `no_std` environments. -Since `libm` is not as performant as the compiler's built-in math intrinsics, it is recommended to use the `std` feature if possible (at least [for now](https://github.com/rust-lang/rfcs/issues/2505)). +Since `libm` is not as performant as the compiler's math intrinsics, it is recommended to use the `std` feature if possible (at least [for now](https://github.com/rust-lang/rfcs/issues/2505)), especially on wasm32 targets. ## Performance |
