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

2022-12-27 Thread Morten Brørup
> From: Andrew Rybchenko [mailto:andrew.rybche...@oktetlabs.ru] > Sent: Tuesday, 27 December 2022 09.54 > > On 12/24/22 13:46, 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 cod

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

2022-12-27 Thread Andrew Rybchenko
On 12/24/22 13:46, 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. v3 (feedback from Konstantin Ananyev): * Removed as

[PATCH v3] mempool: micro-optimize put function

2022-12-24 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. v3 (feedback from Konstantin Ananyev): * Removed assertion and comment about the invariant pr