Re: WIP Patch: Add a function that returns binary JSONB as a bytea

From: John Naylor <john(dot)naylor(at)enterprisedb(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Jelte Fennema <me(at)jeltef(dot)nl>, Merlin Moncure <mmoncure(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Andrew Dunstan <andrew(dot)dunstan(at)2ndquadrant(dot)com>, Stephen Frost <sfrost(at)snowman(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: WIP Patch: Add a function that returns binary JSONB as a bytea
Date: 2022-06-28 04:38:09
Message-ID: CAFBsxsHko7yc8A-2PpjQ=2StomXF+T2jgKF=WaMFZWi8CvV7hA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I wrote:
> We can also shave a
> few percent by having pg_utf8_verifystr use SSE2 for the ascii path. I
> can look into this.

Here's a patch for that. If the input is mostly ascii, I'd expect that
part of the flame graph to shrink by 40-50% and give a small boost
overall.

--
John Naylor
EDB: http://www.enterprisedb.com

Attachment Content-Type Size
use-sse2-verify-utf8.patch text/x-patch 5.4 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2022-06-28 04:41:58 Comments referring to pg_start/stop_backup
Previous Message Julien Rouhaud 2022-06-28 04:32:44 Re: Making the subquery alias optional in the FROM clause