Commit 0a8161e
authored
WasmParser: Specialize more hot paths (#153)
With this change, we can achieve 17% speedup on stringify macro
benchmark. The performance number is same as the case with CMO but with
smaller binary size.
| | baseline | CMO | this change |
|------------|----------|-------|-------------|
| speed (ms) | 198.1 | 172.8 | 169.9 |
| size (kb) [^1] | 1739 | 1923 | 1797 |
[^1]: swift-6.0.1-RELEASE, macOS 14.4.1 arm641 parent fb3426d commit 0a8161e
File tree
5 files changed
+101
-25
lines changed- Sources/WasmParser
- Stream
5 files changed
+101
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | | - | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
0 commit comments