diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-06-10 12:02:10 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-06-10 12:02:10 +0200 |
| commit | 4ea98362c39d63bbfaef28aa25a1e630e01c5611 (patch) | |
| tree | 58325878046ec59b22cc0012497f220cc04762eb /README.md | |
| parent | 18132bf9c9755a7de41a8c89dc6b02409a629cd5 (diff) | |
| download | emscripten-tutorial-4ea98362c39d63bbfaef28aa25a1e630e01c5611.tar.gz emscripten-tutorial-4ea98362c39d63bbfaef28aa25a1e630e01c5611.zip | |
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -67,6 +67,11 @@ In `03_threads` we build a more complicated example based on | |||
| 67 | example, the web server has to be configured to provide the correct | 67 | example, the web server has to be configured to provide the correct |
| 68 | `Cross-Origin-*` headers, see `03_threads/run-server.sh` for details. | 68 | `Cross-Origin-*` headers, see `03_threads/run-server.sh` for details. |
| 69 | 69 | ||
| 70 | There is also a piece of code meant to run this more complicated library | ||
| 71 | function natively (`native.c`). It can be used, for example, to compare | ||
| 72 | the performance of native code vs WASM running in Node.js. You can | ||
| 73 | build it with `./build-native.sh` and run it with `./build/native`. | ||
| 74 | |||
| 70 | ## 4. Don't block the main thread | 75 | ## 4. Don't block the main thread |
| 71 | 76 | ||
| 72 | In `04_no_block` we avoid our calculations blocking the main browser | 77 | In `04_no_block` we avoid our calculations blocking the main browser |
