Re: micro-optimizing json.c - Mailing list pgsql-hackers

From Nathan Bossart
Subject Re: micro-optimizing json.c
Date
Msg-id 20231208194525.GA4028948@nathanxps13
Whole thread Raw
In response to Re: micro-optimizing json.c  (John Naylor <johncnaylorls@gmail.com>)
Responses Re: micro-optimizing json.c
List pgsql-hackers
On Fri, Dec 08, 2023 at 11:51:15AM +0700, John Naylor wrote:
> This is less verbose and still compiles with constants:
> 
> use_line_feeds ? strlen(",\n ") : strlen(",");

This one worked on my machine.  I've committed the patch with that change.
Thanks everyone for the reviews!

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com



pgsql-hackers by date:

Previous
From: "Daniel Verite"
Date:
Subject: Re: Emitting JSON to file using COPY TO
Next
From: Jeff Davis
Date:
Subject: Re: Change GUC hashtable to use simplehash?