replicastats: avoid unnecessary indirection on replicaStatsRecord.localityCounts #123271
Labels
A-kv-distribution
Relating to rebalancing and leasing.
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
C-performance
Perf of queries or internals. Solution not expected to change functional behavior.
E-quick-win
Likely to be a quick win for someone experienced.
T-kv
KV Team
Projects
In the spirit of the memory improvements made in #123167, we should change
replicaStatsRecord.localityCounts
to store a reference toPerLocalityCounts
(a map header), instead of a pointer toPerLocalityCounts
.See the discussion in #93823 (comment).
Jira issue: CRDB-38265
The text was updated successfully, but these errors were encountered: