Commit c17a355
Scan until next special char (", \, \0, \c, \L) and append that slice once. (#25498)
Benchmark comparison (-d:danger --mm:arc --debugger:native -d:useMalloc,
OpenAI file benchmark, 5 runs):
- Before: 0.196674934, 0.189423191, 0.198763300, 0.197125584,
0.205015032
- After: 0.182827130, 0.183330852, 0.174878542, 0.174360811, 0.181704921
- Median before: 0.197125584s
- Median after: 0.181704921s
- Improvement: 7.82% faster
Callgrind comparison (same build flags):
- Total Ir before: 3,219,477,120
- Total Ir after: 2,449,556,167
- Total Ir reduction: 23.91%
parseString hotspot:
- Before: 1,343,343,723 Ir
- After: 573,423,735 Ir
- Reduction: 57.31%
(cherry picked from commit f4dd00c)1 parent d6f60ce commit c17a355
1 file changed
Lines changed: 31 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
178 | 199 | | |
179 | 200 | | |
180 | 201 | | |
| 202 | + | |
181 | 203 | | |
182 | 204 | | |
183 | 205 | | |
184 | 206 | | |
185 | 207 | | |
186 | | - | |
| 208 | + | |
| 209 | + | |
187 | 210 | | |
188 | 211 | | |
189 | 212 | | |
| 213 | + | |
190 | 214 | | |
191 | 215 | | |
192 | 216 | | |
193 | 217 | | |
194 | 218 | | |
| 219 | + | |
195 | 220 | | |
196 | 221 | | |
197 | 222 | | |
| |||
251 | 276 | | |
252 | 277 | | |
253 | 278 | | |
| 279 | + | |
254 | 280 | | |
| 281 | + | |
255 | 282 | | |
256 | 283 | | |
| 284 | + | |
257 | 285 | | |
| 286 | + | |
258 | 287 | | |
259 | 288 | | |
| 289 | + | |
260 | 290 | | |
261 | | - | |
262 | 291 | | |
263 | 292 | | |
264 | 293 | | |
| |||
0 commit comments