Replacing the underlying data structure of ComponentManager with a btree. This
should provide better performance when iterating over components.