Skip to content

wifi: optimize WifiPpdu destructor

The PR eliminates redundant psdu.second = 0; operations. The default destructor will just directly call ~Ptr() for PSDUs. Additionally, the compiler is now able to inline ~WifiPpdu() in the callers. In my simulation, according to the perf profiler, the cumulative cost of ~ErpOfdmPpdu() went down from 1.61% of CPU time to 1.42%.

Edited by Tolik Zinovyev

Merge request reports