Commit b1bf9d6
merkle_tree_cache: change default size to 1000
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: 4329170861 parent 0dc078a commit b1bf9d6
File tree
1 file changed
+3
-2
lines changed- src/main/java/com/google/devtools/build/lib/remote/options
1 file changed
+3
-2
lines changedLines 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