Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pre computing hash code for WeightedRouting to avoid recomputing it (#…
…13099) WeightedRoutingKey is used as key in the HashMap to retreive the shard routings, for every usage the hash key is computed. WeightedRoutingKey internally uses WeightedRouting. As the number of the shards getting queried increases, the computation cost goes high. Computing the hash key during object creation as the object is immutable and using it through out the object thus saving on the additional computation. Signed-off-by: Prabhakar Sithanandam <[email protected]>
- Loading branch information