Skip to content

Use Swiss table with heterogenous lookup for CaseUnorderedSet#6710

Merged
mattklein123 merged 2 commits intoenvoyproxy:masterfrom
dnoe:swiss-gzip
Apr 26, 2019
Merged

Use Swiss table with heterogenous lookup for CaseUnorderedSet#6710
mattklein123 merged 2 commits intoenvoyproxy:masterfrom
dnoe:swiss-gzip

Conversation

@dnoe
Copy link
Copy Markdown
Contributor

@dnoe dnoe commented Apr 25, 2019

Description: By adding some "tags" to the functors used in CaseUnorderedSet and switching it to be an absl::flat_hash_set we can take advantage of heterogeneous lookup ( https://abseil.io/tips/144 ) which eliminates std::string construction when performing a lookup with a string_view argument (obviously, the key type stored must be a concrete std::string and not a string_view). Also convert the gzip filter to eliminate the explicit std::string construction previously required.
Risk Level: Low
Testing: bazel test //test/...
Docs Changes: N/A
Release Notes: N/A
Part of: Issue #6580

Signed-off-by: Dan Noé dpn@google.com

dnoe added 2 commits April 25, 2019 15:52
And remove explicit string construction from gzip filter usage.

Signed-off-by: Dan Noé <dpn@google.com>
Signed-off-by: Dan Noé <dpn@google.com>
Copy link
Copy Markdown
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Nice!

@mattklein123 mattklein123 merged commit 06d1e40 into envoyproxy:master Apr 26, 2019
jeffpiazza-google pushed a commit to jeffpiazza-google/envoy that referenced this pull request Apr 26, 2019
…roxy#6710)

And remove explicit string construction from gzip filter usage.

Signed-off-by: Dan Noé <dpn@google.com>
Signed-off-by: Jeff Piazza <jeffpiazza@google.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.

2 participants