Hi,
On 2025-07-10 08:21:56 +0000, Bertrand Drouvot wrote:
> - Let's define a list of "cheap" and a list of "expensive" wait events
> - Change the code path to increment counters only for the "expensive" ones
> - Optimize the counter incrementation as much as possible
>
> Does that sound reasonable to you?
That does seem like the minimum.
Unfortunately I'm rather doubtful this provides enough value to be worth the
cost. But I'm rather willing to be proven wrong.
Greetings,
Andres Freund