Skip to content

deprecating envoy.reloadable_features.deprecate_global_int#23613

Merged
alyssawilk merged 3 commits into
envoyproxy:mainfrom
alyssawilk:deprecate_global_int
Oct 24, 2022
Merged

deprecating envoy.reloadable_features.deprecate_global_int#23613
alyssawilk merged 3 commits into
envoyproxy:mainfrom
alyssawilk:deprecate_global_int

Conversation

@alyssawilk
Copy link
Copy Markdown
Contributor

@alyssawilk alyssawilk commented Oct 20, 2022

Risk Level: low
Testing: n/a
Docs Changes: n/a
Release Notes: inline
Fixes #23593

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
@repokitteh-read-only
Copy link
Copy Markdown

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #23613 was opened by alyssawilk.

see: more, trace.

Copy link
Copy Markdown
Contributor

@jmarantz jmarantz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

basically lgtm; makes sense to me to drop that settings as no one ever really changed it to my knowledge :)

Is there some general reason not to support int settings though? It seems this PR is part of a bigger mission I was not aware of.

Comment thread source/common/http/header_map_impl.cc Outdated

constexpr absl::string_view DelimiterForInlineHeaders{","};
constexpr absl::string_view DelimiterForInlineCookies{"; "};
const static int kMinHeadersForLazyMap = 3; // Arbitrary hard-coded value.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's better than arbitrary :) @adisuissa did ran microbenchmarks to at least sanity-check that choice.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3 was chosen after doing some benchmarks (#12656).

Comment thread source/common/http/header_map_impl.h Outdated
* feature value (defaults to 3, if not set), all headers are added to a map, to allow
* fast access given a header key. Once the map is initialized, it will be used even if the number
* of headers decreases below the threshold.
* When the list size is greater or equal to the default min size (3), all headers are added to a
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/default// ?

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
@alyssawilk alyssawilk marked this pull request as ready for review October 24, 2022 13:08
Copy link
Copy Markdown
Contributor

@jmarantz jmarantz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@alyssawilk alyssawilk enabled auto-merge (squash) October 24, 2022 13:45
Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
@alyssawilk alyssawilk merged commit 582ae02 into envoyproxy:main Oct 24, 2022
@alyssawilk alyssawilk deleted the deprecate_global_int branch April 5, 2023 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

envoy_reloadable_features_deprecate_global_ints deprecation

3 participants