systemd/systemd — pull request #10 by davidstrauss (2014-04-29 05:51:51+00:00)
Title: Cache unit file states to avoid walking filesytem repeatedly [REVIEW COMMENTS]

Figuring out whether a unit file is enabled currently takes O(files+links).
Pre-caching a reverse mapping of unit->symlinks reduces this to amortized O(1)