[PATCH] eal/riscv: optimize memcpy for small copies under 64 bytes

Thomas Monjalon thomas at monjalon.net
Tue Jun 2 18:21:49 CEST 2026


09/10/2025 08:30, Sun Yuechi:
> Improve rte_memcpy implementation on RISC-V platform for sizes under
> 64 bytes, based on the ARM implementation.
> 
> Enhanced handling for cases smaller than 64 bytes shows very significant
> performance benefits, while the impact is minimal after 64 bytes.
> 
> This optimization is disabled by default as a conservative measure,
> since future glibc versions may include similar improvements that
> could conflict with this implementation.
> 
> Use RTE_ARCH_RISCV_MEMCPY to enable this optimization.
> 
> Signed-off-by: Sun Yuechi <sunyuechi at iscas.ac.cn>

Applied, thanks.





More information about the dev mailing list