ldpc: remove seemingly useless memset() in LDPC decoder
These arrays, from what I can see, are only written. As such, it seems
that resetting these arrays first is futile.
Running
OAI_RNGSEED=2222 perf stat -d ./ldpctest '-l7040' '-s3' -n1000
shows that the average decoding time is reduced, from
ldpc_decoder: 177.625 us; 1000; 355.389 us;
ldpc_decoder: 179.794 us; 1000; 421.170 us;
ldpc_decoder: 173.362 us; 1000; 360.085 us;
ldpc_decoder: 176.322 us; 1000; 323.194 us;
ldpc_decoder: 174.158 us; 1000; 368.887 us;
to
ldpc_decoder: 163.437 us; 1000; 387.684 us;
ldpc_decoder: 164.242 us; 1000; 329.896 us;
ldpc_decoder: 165.561 us; 1000; 386.442 us;
ldpc_decoder: 162.239 us; 1000; 387.872 us;
ldpc_decoder: 164.808 us; 1000; 325.659 us;
while exhibiting reduced number of L1d cache misses.
Signed-off-by:
Robert Schmidt <robert.schmidt@openairinterface.org>
Showing
Please register or sign in to comment