• 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
Name
Last commit
Last update
..
backward_compatibility_test.go Loading commit data...
conversion.go Loading commit data...
conversion_generated.go Loading commit data...
conversion_test.go Loading commit data...
deep_copy_generated.go Loading commit data...
defaults.go Loading commit data...
defaults_test.go Loading commit data...
doc.go Loading commit data...
generated.pb.go Loading commit data...
generated.proto Loading commit data...
register.go Loading commit data...
types.generated.go Loading commit data...
types.go Loading commit data...
types_swagger_doc_generated.go Loading commit data...