Skip to content

Commit

Permalink
fix from merge
Browse files Browse the repository at this point in the history
  • Loading branch information
markdroth committed Jun 28, 2024
1 parent 37b69c0 commit d98c312
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/load_balancing/lb_policy.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ class LoadBalancingPolicy : public InternallyRefCounted<LoadBalancingPolicy> {
private:
friend class MetadataMutationHandler;

// Avoid allocation if up to 3 additions per LB pick. Most expected
// use cases should be no more than 2, so this gives us a bit of slack.
// But it should be cheap to increase this value if we start seeing use
// cases with more than 3 additions.
absl::InlinedVector<
std::pair<absl::string_view, grpc_event_engine::experimental::Slice>, 3>
additions_;
Expand Down

0 comments on commit d98c312

Please sign in to comment.