Commit 7e58228
perf(fmt): speed up file diffing (#30644)
This swaps out dissimilar for imara which is substantially faster at
diffing strings.
Note that this is a proof of concept and I did not have enough time to
make the output pretty. I just shows that the diff is fast. Applying
colors should be doable without changing much about the perf. I'm
willing to fix this up if I get an OK about the general direction.
Fixes #30634
---------
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 92ca1fe commit 7e58228
14 files changed
Lines changed: 191 additions & 137 deletions
File tree
- libs/resolver
- tests/specs/lockfile/frozen_lockfile
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
| 365 | + | |
365 | 366 | | |
366 | 367 | | |
367 | 368 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | 52 | | |
54 | 53 | | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
0 commit comments