Re: [PATCH] Add pg_lfind8_nonzero()

cca5507 <cca5507@qq.com>

From: cca5507 <cca5507@qq.com>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-12-16T02:33:15Z
Lists: pgsql-hackers
Hi,

Thank you for your reply!

> Is code like this ever actually relevant for performance? In cases where the
> compiler can't also optimize the code? Unless it is a legitimate bottleneck,
> adding more complicated code to optimize the case doesn't make sense.

I just think the patch isn't that complicated.

> The benchmark really should show performance benefits in at least somewhat
> realistic cases (i.e. real users of the functions, even if the workload is a
> bit more extreme than it'd be most of the time).

Yeah, this makes sense to me. Maybe I need to think more on it.

--
Regards,
ChangAo Chen