• Clayton Coleman's avatar
    Reduce allocations in metav1.Time JSON serialization · b405cdf8
    Clayton Coleman authored
    Time has a limited set of allowed characters and so can bypass part of
    the expensive checking done for valid JSON characters.
    
    ```
    BenchmarkGet-12          	   10000	    111846 ns/op	   17273 B/op	     130 allocs/op
    BenchmarkWatchHTTP-12    	   50000	     37830 ns/op	    1886 B/op	      29 allocs/op
    
    BenchmarkGet-12          	   20000	    115917 ns/op	   17344 B/op	     130 allocs/op
    BenchmarkWatchHTTP-12    	   50000	     36741 ns/op	    1775 B/op	      24 allocs/op
    ```
    
    Can improve CRD watch performance by 5-10% for small objects.
    b405cdf8
Name
Last commit
Last update
..
publishing Loading commit data...
src Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
README.md Loading commit data...
repos_generated.bzl Loading commit data...