-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
It looks like the caching slowdown is not recent, it's been in a pretty steady decline since that 6x number was recorded. These tags aren't exact, just the tag before the commit I was bisecting:
| Tag | Speedup |
|---|---|
| 0.11.10 | 1.3 |
| 0.9.2 | 1.4 |
| 0.7.3 | 1.7 |
| 0.5.7 | 1.7 |
| 0.5.0 | 1.7 |
| 0.4.5 | 2.6 |
| 0.3.0 | 3.4 |
| 0.0.290 | 3.6 |
| 0.0.240 | 6.1 |
Speedup is the relative speedup reading from cache, as reported in the hyperfine summary above.
I couldn't actually build 0.0.240 because of a git dep on libCST that doesn't exist anymore, so that number is from CONTRIBUTING.md. 0.0.290 is the earliest version I could build easily because it added the ruff_linter crate, which is where I had my CPython clone.
I added a panic after the caching early return in lint_path and can confirm that the cache is working too. (I also tried adding a panic before the early return, right at the top of lint_path and it definitely panicked)
Originally posted by @ntBre in #18051 (comment)