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

Memoize AscIfDefault sorting function #44

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

Conversation

wjordan
Copy link

@wjordan wjordan commented Aug 24, 2022

Fixes the expensive sorting option in AscIfDefault by memoizing the default interface name.
Resolves a performance issue that occurs when on systems with large number of virtual interfaces.

My use-case is a system with over 1500 virtual interfaces that was taking over 20 minutes to render the Nomad Agent's default {{GetPrivateIP}} advertise addresses.

Fix performance issue on systems with large
number of virtual interfaces.
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.

2 participants