Considering to the bottleneck of UPF is user data packet processing, I think using computed goto to replace switch-case can bring more performance on branch prediction.
In the case of many users sending the data packet to UPF, computed goto can prevent the wrong branch prediction (it will cause the pipeline to be cleared).
Considering to the bottleneck of UPF is user data packet processing, I think using
computed goto
to replaceswitch-case
can bring more performance on branch prediction. In the case of many users sending the data packet to UPF,computed goto
can prevent the wrong branch prediction (it will cause the pipeline to be cleared).Reference