Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libct/cg/fscommon: use strings.Cut in RDMA parser
Using strings.Cut (added in Go 1.18, see [1]) results in faster and cleaner code with less allocations (as we're not using a slice). Also, use switch in parseRdmaKV. [1]: golang/go#46336 Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
- Loading branch information