Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize entry size when the singleton weigher is used
In this case the cache acts the same as maximumSize, but the caller constructed using maximumWeight + weigher. The per-entry weight field is not needed, so the maximumSize's entry should be used instead. This allows optimizing when configured like in [1]. [1] https://gerrit-review.googlesource.com/c/gerrit/+/244612
- Loading branch information