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
tree: 622f4947ca82d56c7cc22003e4c7bc7d954ed099
  1. fail-monitor/
  2. libmapper/
  3. obmc/
  4. .clang-format
  5. .gitignore
  6. bootstrap.sh
  7. configure.ac
  8. LICENSE
  9. Makefile.am
  10. phosphor-mapper
  11. README.md
  12. setup.cfg
  13. setup.py.in
README.md

To Build

To build this package, do the following steps:

    1. ./bootstrap.sh
    2. ./configure ${CONFIGURE_FLAGS}
    3. make

To clean the repository run `./bootstrap.sh clean`.