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

AS path filtering performance #188

Closed
digizeph opened this issue Oct 28, 2024 · 0 comments
Closed

AS path filtering performance #188

digizeph opened this issue Oct 28, 2024 · 0 comments

Comments

@digizeph
Copy link
Member

Currently, the filter for AS path is implemented as a String, and it needs to create a regular expression struct on every single path to do the matching, which is very much inefficient. We should refactor the internal storage of AS path filter to be constructed regular expression structs, and use re object to match on AS paths.

Besides, the matching also done based on AS path strings, which needs to be contrstuctred on every path, potentially very expensive as well. But I am unsure if there is a better way to do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant