NR UE PDSCH: Pre-allocate per-actor scratch buffers to eliminate per-slot heap allocations
Replace all per-slot heap allocations for rxdataF_comp, dl_ch_mag/magb/magr,
rho_dl and pdsch_dl_ch_estimates with a pre-allocated scratch buffer array
stored in PHY_VARS_NR_UE. One scratch set is allocated per DL actor
(num_dl_actors from UE params, defaulting to 1); the actor index is derived
as proc->nr_slot_rx % pdsch_num_actors, giving each parallel DL actor its
own non-overlapping buffer set and eliminating heap contention between actors.
Also remove redundant memset() calls on dl_ch_estimates_ext and rxdataF_ext
stack VLAs, which are fully overwritten by nr_dlsch_extract_rbs() before use.
Signed-off-by:
Rupanjali <rupanjali.srivastava@openairinterface.org>
Showing
Please register or sign in to comment