Repository navigation
Commit a4ea872
committed
perf(mobile): stop iOS syntax highlighting from looking up a thread-local on every lexer call
Compiled as C11, the wasm2c runtime makes its stack depth counter thread-local, and on Apple platforms every lexer function entry then calls _tlv_get_addr. The pod's C files now compile as gnu99, where wasm2c falls back to a plain global on Apple. Callers already serialize the lexer, so the counter never needs per-thread state.1 parent a21d788 commit a4ea872
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
| |||
0 commit comments