Perfomance: add preallocation for some slices (#59263)
add preallocation for some slices
This commit is contained in:
@@ -306,7 +306,7 @@ var allowedTSVeneers = map[string]bool{
|
||||
}
|
||||
|
||||
func allowedTSVeneersString() string {
|
||||
var list []string
|
||||
list := make([]string, 0, len(allowedTSVeneers))
|
||||
for tgt := range allowedTSVeneers {
|
||||
list = append(list, tgt)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user