runc/libcontainer/cgroups/systemd
Kir Kolyshkin 2a322e91ec cgroupv1: remove subsystemSet.Get()
Instead of iterating over m.paths, iterate over subsystems and look up
the path for each. This is faster since a map lookup is faster than
iterating over the names in Get. A quick benchmark shows that the new
way is 2.5x faster than the old one.

Note though that this is not done to make things faster, as savings are
negligible, but to make things simpler by removing some code.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2020-07-06 18:31:46 -07:00
..
common.go cgroup: store the result of IsRunningSystemd 2020-07-05 12:42:27 +02:00
systemd_test.go systemd: add unit tests for systemdVersion 2020-06-18 22:30:50 -04:00
unsupported.go fix path error in systemd when stopped 2020-06-02 18:17:43 +08:00
user.go cgroup v2: support rootless systemd 2020-05-08 12:39:20 +09:00
v1.go cgroupv1: remove subsystemSet.Get() 2020-07-06 18:31:46 -07:00
v2.go libct/cgroups: add SkipDevices to Resources 2020-07-02 15:19:31 -07:00