Inefficiency in logging
While trying to take multiple noise measurements, I stumbled across a significant source of inefficiency in the logging system.
Thanks to lines such as this one, Ph2_ACF converts the full incoming data-stream into strings, regardless of the logging verbosity level.
I performed a small test by commenting out all the LOG(DEBUG)
lines from that file (delcourt/Ph2_ACF@f297d182), and tested with the command time ot_module_test -f settings/2S_Module.xml -m -t -b -a
.
This simple change resulted in a time reduction from 92.887s to 41.142s (-56%) on our machine.