Re: [PATCH] Optimize json_lex_string by batching character copying
Nathan Bossart <nathandbossart@gmail.com>
From: Nathan Bossart <nathandbossart@gmail.com>
To: John Naylor <john.naylor@enterprisedb.com>
Cc: Andres Freund <andres@anarazel.de>, Tom Lane <tgl@sss.pgh.pa.us>, Jelte Fennema <Jelte.Fennema@microsoft.com>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>, Merlin Moncure <mmoncure@gmail.com>, Andrew Dunstan <andrew.dunstan@2ndquadrant.com>, Stephen Frost <sfrost@snowman.net>
Date: 2022-08-23T03:32:36Z
Lists: pgsql-hackers
Attachments
- v8-0001-json_lex_string-SIMD.patch (text/x-diff)
On Mon, Aug 22, 2022 at 02:22:29PM -0700, Nathan Bossart wrote: > On Mon, Aug 22, 2022 at 09:35:34AM +0700, John Naylor wrote: >> Not at all! However, the 32-bit-element changes are irrelevant for >> json, and make review more difficult. I would suggest keeping those in >> the other thread starting with whatever refactoring is needed. I can >> always rebase over that. > > Yeah, I'll remove those to keep this thread focused. Here's a new version of the patch with the 32-bit changes and calls to lfind() removed. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com
Commits
-
Speed up lexing of long JSON strings
- 0a8de93a48ce 16.0 landed
-
Add optimized functions for linear search within byte arrays
- e813e0e16852 16.0 landed
-
Build de-escaped JSON strings in larger chunks during lexing
- 3838fa269c15 16.0 landed
-
Simplify json lexing state
- 3de359f18f2b 16.0 landed