Skip to content

stats: use tag iterator rather than constructing the tag-array and searching that.#6853

Merged
lizan merged 3 commits intoenvoyproxy:masterfrom
jmarantz:hystrix-use-tag-iterator
May 10, 2019
Merged

stats: use tag iterator rather than constructing the tag-array and searching that.#6853
lizan merged 3 commits intoenvoyproxy:masterfrom
jmarantz:hystrix-use-tag-iterator

Conversation

@jmarantz
Copy link
Contributor

@jmarantz jmarantz commented May 7, 2019

Description: With the symbol-table API, it's much better to intern (make StatNames for) known strings at construction time, and then use those to search tags via the iterator, rather than constructing a tag-array (which is no longer held in memory).
Risk Level: low
Testing: just the hystrix test
Docs Changes: n/a
Release Notes: n/a

…arching that.

Signed-off-by: Joshua Marantz <jmarantz@google.com>
@jmarantz jmarantz requested a review from eziskind May 7, 2019 22:37
Signed-off-by: Joshua Marantz <jmarantz@google.com>
Copy link
Contributor

@eziskind eziskind left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@lizan lizan left a comment

Choose a reason for hiding this comment

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

/retest

If the retest fails, please merge master.

@repokitteh-read-only
Copy link

🔨 rebuilding ci/circleci: release (failed build)

🐱

Caused by: a #6853 (review) was submitted by @lizan.

see: more, trace.

Signed-off-by: Joshua Marantz <jmarantz@google.com>
@jmarantz
Copy link
Contributor Author

/retest

@repokitteh-read-only
Copy link

🔨 rebuilding ci/circleci: coverage (failed build)

🐱

Caused by: a #6853 (comment) was created by @jmarantz.

see: more, trace.

@lizan lizan merged commit bdb1786 into envoyproxy:master May 10, 2019
@jmarantz jmarantz deleted the hystrix-use-tag-iterator branch May 10, 2019 14:13
mpuncel added a commit to mpuncel/envoy that referenced this pull request May 10, 2019
* master: (88 commits)
  upstream: Null-deref on TCP health checker if setsockopt fails  (envoyproxy#6793)
  ci: switch macOS CI to azure pipelines (envoyproxy#6889)
  os syscalls lib: break apart syscalls used for hot restart (envoyproxy#6880)
  Kafka codec: precompute request size before serialization, so we do n… (envoyproxy#6862)
  upstream: move static and strict_dns clusters to dedicated files (envoyproxy#6886)
  Rollforward of api: Add total_issued_requests to Upstream Locality and Endpoint Stats. (envoyproxy#6692) (envoyproxy#6784)
  fix explicit constructor in copy-initialization (envoyproxy#6884)
  stats: use tag iterator rather than constructing the tag-array and searching that. (envoyproxy#6853)
  common: use unscoped build target in generate_version_linkstamp (envoyproxy#6877)
  Addendum to envoyproxy#6778 (envoyproxy#6882)
  ci: add minimum Linux build for Azure Pipelines (envoyproxy#6881)
  grpc: utilities for inter-converting grpc::ByteBuffer and Buffer::Instance. (envoyproxy#6732)
  upstream: allow excluding hosts from lb calculations until initial health check (envoyproxy#6794)
  stats: prevent unused counters from leaking across hot restart (envoyproxy#6850)
  network filters: add `injectDataToFilterChain(data, end_stream)` method to network filter callbacks (envoyproxy#6750)
  delete things that snuck back in (envoyproxy#6873)
  config: scoped rds (2b): support delta APIs in ConfigProvider framework (envoyproxy#6781)
  string == string! (envoyproxy#6868)
  config: add mssing imports to delta_subscription_state (envoyproxy#6869)
  protobuf: add missing default case to enum (envoyproxy#6870)
  ...

Signed-off-by: Michael Puncel <mpuncel@squareup.com>
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.

3 participants