Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kv: allocate BatchResponse header and responses together
Avoids a heap allocation on each BatchResponse creations. ``` name old time/op new time/op delta Sysbench/KV/1node_remote/oltp_point_select-10 39.8µs ±16% 39.6µs ±19% ~ (p=0.968 n=9+10) name old alloc/op new alloc/op delta Sysbench/KV/1node_remote/oltp_point_select-10 6.79kB ± 4% 6.77kB ± 4% ~ (p=0.671 n=10+10) name old allocs/op new allocs/op delta Sysbench/KV/1node_remote/oltp_point_select-10 60.0 ± 0% 59.0 ± 0% -1.67% (p=0.000 n=9+8) ```
- Loading branch information