• Kirill Smelkov's avatar
    X Remove many allocations from inside inner loops · 9afdf134
    Kirill Smelkov authored
    name       old time/op    new time/op    delta
    Iterate-4    17.4µs ± 0%    13.1µs ± 1%  -24.65%  (p=0.000 n=10+9)
    
    name       old alloc/op   new alloc/op   delta
    Iterate-4    17.2kB ± 0%    10.6kB ± 0%  -38.29%  (p=0.000 n=10+10)
    
    name       old allocs/op  new allocs/op  delta
    Iterate-4       164 ± 0%        24 ± 0%  -85.37%  (p=0.000 n=10+10)
    9afdf134
filestorage_test.go 7.73 KB