Skip to content

Memoize AscIfDefault sorting function#44

Open
wjordan wants to merge 1 commit intohashicorp:masterfrom
wjordan:ascifdefault-memoize
Open

Memoize AscIfDefault sorting function#44
wjordan wants to merge 1 commit intohashicorp:masterfrom
wjordan:ascifdefault-memoize

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