Skip to content

upstream: Uses a more efficient type for ClusterMap#44006

Open
birenroy wants to merge 4 commits intoenvoyproxy:mainfrom
birenroy:btree-not-map
Open

upstream: Uses a more efficient type for ClusterMap#44006
birenroy wants to merge 4 commits intoenvoyproxy:mainfrom
birenroy:btree-not-map

Conversation

@birenroy
Copy link
Contributor

This change replaces std::map with absl::flat_hash_map, which is much more efficient in terms of memory allocations and CPU/memory operations per lookup.

In the one case where the ordering matters, the ClusterMap data is sorted before dumping.

Commit Message: upstream: Uses a more efficient type for ClusterMap
Additional Description:
Risk Level:
Testing: ran unit and integration tests locally
Docs Changes:
Release Notes:
Platform Specific Features:

…-efficient.

Signed-off-by: Biren Roy <birenroy@google.com>
Signed-off-by: Biren Roy <birenroy@google.com>
@birenroy
Copy link
Contributor Author

/assign @adisuissa

@birenroy
Copy link
Contributor Author

/assign @paul-r-gall

Signed-off-by: Biren Roy <birenroy@google.com>
Signed-off-by: Biren Roy <birenroy@google.com>
@birenroy
Copy link
Contributor Author

I'm having a hard time understanding why //test/extensions/config_subscription/grpc:xds_failover_integration_test is failing. If you have any ideas, they would be much appreciated.

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