core: Find log component with std::map::find() and use unordered_map
Optimize operations of finding a LogComponent
with std::map::find()
, instead of linear-searching through all components, which is more computationally expensive. Moreover, update the underlying data structure to use std::unordered_map
instead of std::map
, making the find operations constant in time O(1).
Edited by Eduardo Almeida