Commit 5f30746
Improve performance of UseConsistentIndentation -> 35% speedup for formatter (#1458)
* only go back as much as needed
* refactor into function
* simplify
* Apply suggestions from code review
Co-Authored-By: Robert Holt <rjmholt@gmail.com>
Co-authored-by: Christoph Bergmeister <christoph.bergmeister@bjss.com>
Co-authored-by: Robert Holt <rjmholt@gmail.com>1 parent 1f63688 commit 5f30746
1 file changed
+18
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
| 222 | + | |
226 | 223 | | |
227 | 224 | | |
228 | 225 | | |
| |||
257 | 254 | | |
258 | 255 | | |
259 | 256 | | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
260 | 274 | | |
261 | 275 | | |
262 | 276 | | |
| |||
0 commit comments