From 752d71707f94a8691c58db9c580d2c98f23e7a40 Mon Sep 17 00:00:00 2001 From: Rama Chavali Date: Mon, 6 Jan 2025 07:49:59 +0530 Subject: [PATCH] remove expensive sprintf in configs updated (#54555) Signed-off-by: Rama Chavali --- pilot/pkg/xds/discovery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pilot/pkg/xds/discovery.go b/pilot/pkg/xds/discovery.go index b6f9e8ae874d..6f49a9c190c7 100644 --- a/pilot/pkg/xds/discovery.go +++ b/pilot/pkg/xds/discovery.go @@ -418,7 +418,7 @@ func configsUpdated(req *model.PushRequest) string { break } if len(req.ConfigsUpdated) > 1 { - more := fmt.Sprintf(" and %d more configs", len(req.ConfigsUpdated)-1) + more := " and " + strconv.Itoa(len(req.ConfigsUpdated)-1) + " more configs" configs += more } return configs