[RFC 2/3] lib: add fastmem library
Stephen Hemminger
stephen at networkplumber.org
Wed May 27 16:22:51 CEST 2026
On Mon, 25 May 2026 12:36:41 +0200
Mattias Rönnblom <hofors at lysator.liu.se> wrote:
> +
> +static __rte_always_inline struct fastmem_cache *
> +cache_get(struct fastmem_socket_state *socket, unsigned int class_idx,
> + unsigned int lcore_id)
Do not use always_inline. With current compilers using always inline
makes the optimizer generate worse code. The only exceptions would
be where inline is required to make assembly work or you have good benchmark
data that proves that always_inline generates > 1% performance gain.
To much of DPDK use __rte_always_inline as "cargo cult" it is faster setting.
More information about the dev
mailing list