Commit edb50e9
committed
runtime: Enable Cranelift OptLevel::Speed for WASM compilation
Switch the default Cranelift optimization level from `None` to `Speed`,
improving WASM handler execution performance. The optimization level is
configurable via the `GRAPH_WASM_OPT_LEVEL` environment variable
(valid values: `none`, `speed`, `speed_and_size`; default: `speed`).
This is safe because Cranelift adheres to the Wasm spec and NaN
canonicalization is already enabled. The increased compilation time is a
one-time cost per module, amortized over thousands of triggers.1 parent 629f2f7 commit edb50e9
3 files changed
+56
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
85 | 101 | | |
86 | 102 | | |
87 | 103 | | |
| |||
91 | 107 | | |
92 | 108 | | |
93 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
94 | 136 | | |
95 | 137 | | |
96 | 138 | | |
| |||
121 | 163 | | |
122 | 164 | | |
123 | 165 | | |
| 166 | + | |
124 | 167 | | |
125 | 168 | | |
126 | 169 | | |
| |||
164 | 207 | | |
165 | 208 | | |
166 | 209 | | |
| 210 | + | |
| 211 | + | |
167 | 212 | | |
168 | 213 | | |
169 | 214 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
294 | | - | |
295 | | - | |
296 | | - | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
297 | 298 | | |
298 | 299 | | |
299 | 300 | | |
300 | 301 | | |
301 | | - | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
302 | 307 | | |
303 | 308 | | |
304 | 309 | | |
| |||
0 commit comments