Commit 9e39a63
authored
perf: only iter on found escape sequences (#304)
Finding used sequences is much faster than iterating over each one of them for each character.
The iteration is still used, but at least it will only be used once per any sequence that is actually used in the string.
Most strings won't include any sequences and will just be fast.
@moduon MT-10751 parent 8edb46c commit 9e39a63
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
| 137 | + | |
136 | 138 | | |
137 | 139 | | |
138 | | - | |
| 140 | + | |
139 | 141 | | |
140 | 142 | | |
141 | 143 | | |
| |||
0 commit comments