Re: [PATCH v4] mempool: optimize get objects with constant n

2023-06-07 Thread Thomas Monjalon
18/04/2023 22:09, Morten Brørup: > When getting objects from the mempool, the number of objects to get is > often constant at build time. > > This patch adds another code path for this case, so the compiler can > optimize more, e.g. unroll the copy loop when the entire request is > satisfied from

[PATCH v4] mempool: optimize get objects with constant n

2023-04-18 Thread Morten Brørup
When getting objects from the mempool, the number of objects to get is often constant at build time. This patch adds another code path for this case, so the compiler can optimize more, e.g. unroll the copy loop when the entire request is satisfied from the cache. On an Intel(R) Xeon(R) E5-2620 v4