Skip to content

core: Find log component with std::map::find() and use unordered_map

Eduardo Almeida requested to merge edalm/ns-3-dev:log-find-map into master

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

Merge request reports