Merge pull request #26007 from smarterclayton/watch_opt
Automatic merge from submit-queue Additional optimizations to the encode/decode paths Builds on top of #25983 with a number of other optimizations.
This commit is contained in:
@@ -195,6 +195,8 @@ func FuzzerFor(t *testing.T, version unversioned.GroupVersion, src rand.Source)
|
||||
randomQuantity := func() resource.Quantity {
|
||||
var q resource.Quantity
|
||||
c.Fuzz(&q)
|
||||
// precalc the string for benchmarking purposes
|
||||
_ = q.String()
|
||||
return q
|
||||
}
|
||||
q.Limits = make(api.ResourceList)
|
||||
|
Reference in New Issue
Block a user