Commit 12f5cca
committed
[FormattedStream] Add ASCII fast path
Printing IR spends a large amount of time updating the column
count via generic UTF-8 APIs. Speed it up by adding a fast path
for the common printable ASCII case.
This makes `-print-on-crash -print-module-scope` about two times
faster.1 parent 2eb40aa commit 12f5cca
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
78 | 85 | | |
79 | 86 | | |
80 | 87 | | |
| |||
0 commit comments