wifi: optimize `WifiPhy::GetStaticPhyEntity()`
I ran a profiler on my wifi network simulation program and noticed that WifiPhy::GetStaticPhyEntity()
was taking 1% of the CPU time due to an expensive std::map
lookup. This PR replaces the std::map
with an std::vector
. Now the cost of WifiPhy::GetStaticPhyEntity()
is 0.03%.
Arch linux, Intel Core i5-8250U.
Edited by Tolik Zinovyev