Reduce amount of allocations in kube-proxy

This commit is contained in:
wojtekt
2018-08-28 15:18:58 +02:00
parent 963adda7f9
commit 8fb365df32
4 changed files with 20 additions and 19 deletions

View File

@@ -373,6 +373,7 @@ func NewFakeProxier(ipt utiliptables.Interface) *Proxier {
healthChecker: newFakeHealthChecker(),
precomputedProbabilities: make([]string, 0, 1001),
iptablesData: bytes.NewBuffer(nil),
existingFilterChainsData: bytes.NewBuffer(nil),
filterChains: bytes.NewBuffer(nil),
filterRules: bytes.NewBuffer(nil),
natChains: bytes.NewBuffer(nil),