Re: [PATCH] mempool: micro-optimize put function

2022-11-16 Thread Andrew Rybchenko
On 11/16/22 14:10, Morten Brørup wrote: From: Andrew Rybchenko [mailto:andrew.rybche...@oktetlabs.ru] Sent: Wednesday, 16 November 2022 12.05 On 11/16/22 13:18, Morten Brørup wrote: Micro-optimization: Reduced the most likely code path in the generic put function by moving an unlikely check o

RE: [PATCH] mempool: micro-optimize put function

2022-11-16 Thread Morten Brørup
> From: Andrew Rybchenko [mailto:andrew.rybche...@oktetlabs.ru] > Sent: Wednesday, 16 November 2022 12.05 > > On 11/16/22 13:18, Morten Brørup wrote: > > Micro-optimization: > > Reduced the most likely code path in the generic put function by > moving an > > unlikely check out of the most likely c

Re: [PATCH] mempool: micro-optimize put function

2022-11-16 Thread Andrew Rybchenko
On 11/16/22 13:18, Morten Brørup wrote: Micro-optimization: Reduced the most likely code path in the generic put function by moving an unlikely check out of the most likely code path and further down. Also updated the comments in the function. Signed-off-by: Morten Brørup --- lib/mempool/rte

[PATCH] mempool: micro-optimize put function

2022-11-16 Thread Morten Brørup
Micro-optimization: Reduced the most likely code path in the generic put function by moving an unlikely check out of the most likely code path and further down. Also updated the comments in the function. Signed-off-by: Morten Brørup --- lib/mempool/rte_mempool.h | 35 ++-