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

Speed up code for arm architecture when creating new rules #341

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jkklemm
Copy link

@jkklemm jkklemm commented Oct 31, 2023

Since the arm architecture is slow to always lookup the tables, the creation of many rules with standard targets like Accept or Reject can slow down the creation of firewall rules. For this reason, a dictionary is used to check available tables and standard targets are not check if they are a chain.
This code can halve the execution time on an Arm architectures if many firewall rules are created.

@jkklemm jkklemm marked this pull request as draft November 3, 2023 08:31
@jkklemm jkklemm marked this pull request as ready for review November 3, 2023 08:31
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.

1 participant