On Thu, 21 Mar 2024 at 01:24, Melih Mutlu <m.melihmu...@gmail.com> wrote: > What if I do a simple comparison like PqSendStart == PqSendPointer instead of > calling pq_is_send_pending()
Yeah, that sounds worth trying out. So the new suggestions to fix the perf issues on small message sizes would be: 1. add "inline" to internal_flush function 2. replace pq_is_send_pending() with PqSendStart == PqSendPointer 3. (optional) swap the order of PqSendStart == PqSendPointer and len >= PqSendBufferSize