switch-case和if-else的效率比较
https://blog.csdn.net/wyk19950704/article/details/50983903
在for循环体内定义变量的效率分析
https://www.cnblogs.com/avin/p/7458063.html
缩小数据结构,让数据变得紧凑(对齐)
预取
rte_prefetch0
memset时已经加载入了内存,就不需要预取
伪共享问题:cacheline对齐
https://blog.csdn.net/qq_15437629/article/details/117824718
合理使用inline函数
Facebook 开源二进制优化和布局工具 BOLT,加速大规模应用:
https://github.com/facebookincubator/BOLT/tree/main/bolt
DPDK性能优化指南
https://dpdk-docs.readthedocs.io/en/latest/prog_guide/writing_efficient_code.html