Re: [PATCH] avoid double scanning in function byteain

Aleksander Alekseev <aleksander@timescale.com>

From: Aleksander Alekseev <aleksander@timescale.com>
To: pgsql-hackers@lists.postgresql.org
Cc: Stepan Neretin <slpmcf@gmail.com>, Steven Niu <niushiji@gmail.com>, Kirill Reshke <reshkekirill@gmail.com>
Date: 2025-05-09T12:43:18Z
Lists: pgsql-hackers
Hi Stepan,

> Sorry for the noise — I'm resending the patch because I noticed a compiler warning related to mixed declarations and code, which I’ve now fixed.
>
> Apologies for the oversight in the previous submission.

Thanks for the patch.

As Kirill pointed out above, it would be nice if you could prove that
your implementation is actually faster. I think something like a
simple micro-benchmark will do.

-- 
Best regards,
Aleksander Alekseev



Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Speed up byteain by not parsing traditional-style input twice.