Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oAvjC-0007hr-05 for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Jul 2022 15:53:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oAvjA-0001nY-LF for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Jul 2022 15:53:40 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oAvjA-0001nP-C9 for pgsql-hackers@lists.postgresql.org; Mon, 11 Jul 2022 15:53:40 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oAvj4-0008Ou-22 for pgsql-hackers@postgresql.org; Mon, 11 Jul 2022 15:53:39 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 26BFrQ5K1119853; Mon, 11 Jul 2022 11:53:26 -0400 From: Tom Lane To: Andres Freund cc: John Naylor , Jelte Fennema , "pgsql-hackers@postgresql.org" , Merlin Moncure , Andrew Dunstan , Stephen Frost Subject: Re: [PATCH] Optimize json_lex_string by batching character copying In-reply-to: <20220711154150.hwzw7qw2k6iahofy@awork3.anarazel.de> References: <20220625001810.q4giojmraweoyl5e@alap3.anarazel.de> <20220625010551.r5qrk5n2euuwqos3@alap3.anarazel.de> <20220706051801.gfbzjxgflbsglyt6@awork3.anarazel.de> <20220711154150.hwzw7qw2k6iahofy@awork3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Mon, 11 Jul 2022 08:41:50 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1119851.1657554806.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 11 Jul 2022 11:53:26 -0400 Message-ID: <1119852.1657554806@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > I wonder if we can't abstract this at least a bit better. If we go that = route > a bit further, then add another arch, this code will be pretty much > unreadable. IMO, it's pretty unreadable *now*, for lack of comments about what it's doing and why. regards, tom lane