Commit 0764821
merkle_tree_cache: change default size to 1000 (bazelbuild#14984)
The implementation of Merkle Tree Cache maintains an in-process map
which cache the Input merkle tree's nodes to save traversal time when
Bazel have to interact with Remote Cache and/or RBE services.
This cache implementation used Caffeine's Soft Values cache which should
be used with predictable maximum cache size.
Set the default cache size to 1000 instead of unlimited(0).
Adjust doc to note that default might not be the most optimal value.
Closes bazelbuild#14959.
PiperOrigin-RevId: 432917086
(cherry picked from commit b1bf9d6)
Co-authored-by: Son Luong Ngoc <[email protected]>1 parent 61cfa1d commit 0764821
1 file changed
Lines changed: 3 additions & 2 deletions
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
540 | 540 | | |
541 | 541 | | |
542 | 542 | | |
543 | | - | |
| 543 | + | |
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
547 | 547 | | |
548 | 548 | | |
549 | 549 | | |
550 | | - | |
| 550 | + | |
| 551 | + | |
551 | 552 | | |
552 | 553 | | |
553 | 554 | | |
| |||
0 commit comments