Speed up enumerate_subtree()
Searching a set is faster than searching a list, and changing this
particular spot to a set cut the function's overall execution time
by half when enumerating 200 /xyz/openbmc_project/logging objects,
from ~15s down to about 6 (with system power off).
Also removed the list() conversions that tend to be slow and aren't
really needed for python3 anyway.
Resolves openbmc/openbmc#3199
Change-Id: Id4534b7c3aee1017164f6d01e9028a8bcf0e9cd2
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
1 file changed