Skip to content

(Tiny) Use initial capacity when making a map

In https://gitlab.guerraz.net/HLB/hlb-terraform-provider/-/blob/main/hlb/load_balancer.go?ref_type=heads#L111 you could totally do

targetStates := make(map[string]bool, len(target))

Tiny performance improvement, probably not even noticeable but why not 😄