Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move Filter::ReadContext to ClusterMap #828

Open
XAMPPRocky opened this issue Oct 18, 2023 · 0 comments
Open

Move Filter::ReadContext to ClusterMap #828

XAMPPRocky opened this issue Oct 18, 2023 · 0 comments
Labels
kind/bug Something isn't working

Comments

@XAMPPRocky
Copy link
Collaborator

Converting from ClusterMap to Vec<Endpoint> for every packet uses up a good portion of our time on the CPU, we should remove it and instead provide it a read only view into the cluster map for filters.

let endpoints: Vec<_> = config.clusters.read().endpoints().collect();

Screenshot 2023-10-18 at 23 46 07
@XAMPPRocky XAMPPRocky added the kind/bug Something isn't working label Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant