Commit 459e4db
committed
check: cache prettier and eslint results
Both re-lint every file on every run. Measured on this repo: prettier
19.5s, eslint 108s. Neither result changes for a file that has not
changed, so both keep a cache keyed on content.
Warm: prettier 7.1s, eslint 2.4s -- a full lint goes from ~127s to
~4.3s. Cold cost is unchanged, so CI (fresh checkout, no cache) is
unaffected; this buys back the local edit-check loop.1 parent 58f2e0a commit 459e4db
2 files changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments