Files
runc/libcontainer/cgroups
Kir Kolyshkin 12dc475dd6 libcontainer: simplify createCgroupsv2Path
fmt.Sprintf is slow and is not needed here, string concatenation would
be sufficient. It is also redundant to convert []byte from string and
back, since `bytes` package now provides the same functions as `strings`.

Use Fields() instead of TrimSpace() and Split(), mainly for readability
(note Fields() is somewhat slower than Split() but here it doesn't
matter much).

Use Join() to prepend the plus signs.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2020-03-20 11:51:55 -07:00
..
2020-02-03 14:27:12 +02:00
2020-03-13 02:58:39 +09:00
2019-12-06 15:42:10 +09:00
2020-03-13 02:58:39 +09:00
2020-03-13 02:58:39 +09:00