Commit 8d88a4a
Update Emscripten SDK from 3.1.28 to 4.0.23 (#1907)
Summary:
Pull Request resolved: #1907
Update the Emscripten SDK used for the JavaScript WASM build from
3.1.28 to 4.0.23. This brings ~2 years of Emscripten improvements
including better WASM codegen and smaller JS glue output.
Required build config changes for Emscripten 4.x compatibility:
- Remove `--memory-init-file 0` (deprecated, no longer accepted)
- Change `TEXTDECODER=0` to `TEXTDECODER=2` (0 is no longer valid)
- Add `EXPORTED_RUNTIME_METHODS=['HEAPF32','HEAP32']` (heap views are
no longer on Module by default in 4.x)
**Bundle size:**
| Metric | emsdk 3.1.28 | emsdk 4.0.23 | Change |
|---|---|---|---|
| Raw | 115,370 B | 90,219 B | -21.8% |
| Gzip | 42,764 B | 34,445 B | -19.4% |
**Benchmark results (median of 3 runs):**
| Benchmark | 3.1.28 | 4.0.23 | Change |
|---|---|---|---|
| Stack with flex | 9ms | 6ms | similar |
| Align stretch | 5ms | 4ms | similar |
| Nested flex | 4ms | 4ms | same |
| Huge nested layout | 5ms | 4ms | similar |
Reviewed By: cortinico
Differential Revision: D95012856
fbshipit-source-id: b594f1a50626dc6c30b7a934c6146774b74ccfc11 parent 5ea3509 commit 8d88a4a
2 files changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
| |||
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
47 | | - | |
| 46 | + | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
52 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| |||
0 commit comments