• k8s-merge-robot's avatar
    Merge pull request #26033 from smarterclayton/safer_quantity · 3717e4e4
    k8s-merge-robot authored
    Automatic merge from submit-queue
    
    Round should avoid clearing s, save a string
    
    Instead of saving bytes, save a string, which makes String() faster
    and does not unduly penalize marshal. During parse, save the string
    if it is in canonical form.
    
    @wojtek-t @lavalamp this makes quantity.String() faster for a few cases
    where it matters. We were also not clearing s properly before on Round()
    3717e4e4
types.generated.go 1.31 MB
The source could not be displayed because it is larger than 1 MB. You can load it anyway or download it instead.