Re: micro-optimizing json.c

From: Nathan Bossart <nathandbossart(at)gmail(dot)com>
To: John Naylor <johncnaylorls(at)gmail(dot)com>
Cc: David Rowley <dgrowleyml(at)gmail(dot)com>, Joe Conway <mail(at)joeconway(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Andrew Dunstan <andrew(at)dunslane(dot)net>, Davin Shearer <davin(at)apache(dot)org>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: micro-optimizing json.c
Date: 2023-12-08 20:37:08
Message-ID: 20231208203708.GA4126315@nathanxps13
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Here are a couple more easy micro-optimizations in nearby code. I've split
them into individual patches for review, but I'll probably just combine
them into one patch before committing.

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

Attachment Content-Type Size
v1-0001-micro-optimize-bool-code-path-in-datum_to_json_in.patch text/x-diff 1.2 KB
v1-0002-micro-optimize-null-code-path-in-datum_to_json_in.patch text/x-diff 785 bytes
v1-0003-micro-optimize-cast-code-path-in-datum_to_json_in.patch text/x-diff 1.0 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joe Conway 2023-12-08 21:26:40 Re: Emitting JSON to file using COPY TO
Previous Message Daniel Verite 2023-12-08 20:35:39 Re: Emitting JSON to file using COPY TO