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

refactor: Get language options from the constructor to avoid memory reallocations #255

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

MrDave1999
Copy link
Member

@MrDave1999 MrDave1999 commented Jul 1, 2024

The constructor will only be called once, so memory is only allocated once. Then the Apply method will be called as many times as necessary, depending on the number of endpoints that exist.

@MrDave1999 MrDave1999 added the refactor Refactoring existing code, to make it more readable, cleaner or more efficient label Jul 1, 2024
@MrDave1999 MrDave1999 merged commit 9e460be into dev Jul 1, 2024
3 checks passed
@MrDave1999 MrDave1999 deleted the refactor branch July 1, 2024 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Refactoring existing code, to make it more readable, cleaner or more efficient
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant