Commit 13fd74d
committed
Actually cache rule names.
The `nameCache` for rule names wasn't actually ever storing any rule names, so the cache hit rate was pretty low. Now rule names are stored in the cache and the hit rate is much better.
I tested this by formatting the swift-protobuf library.
- Before: average 56.7 seconds
- After: average 24.3 seconds1 parent 52626da commit 13fd74d
1 file changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
0 commit comments