Re: [PATCH] Optimize json_lex_string by batching character copying

Поиск
Список
Период
Сортировка
Искать
От
Nathan Bossart
Тема
Re: [PATCH] Optimize json_lex_string by batching character copying
Дата
Msg-id
20220823171546.GA1207981@nathanxps13
Ответ на
Список
Дерево обсуждения
[PATCH] Optimize json_lex_string by batching character copying Jelte Fennema <Jelte.Fennema@microsoft.com>
Re: [PATCH] Optimize json_lex_string by batching character copying Andres Freund <andres@anarazel.de>
Re: [PATCH] Optimize json_lex_string by batching character copying Andres Freund <andres@anarazel.de>
Re: [PATCH] Optimize json_lex_string by batching character copying John Naylor <john.naylor@enterprisedb.com>
Re: [PATCH] Optimize json_lex_string by batching character copying Andres Freund <andres@anarazel.de>
Re: [PATCH] Optimize json_lex_string by batching character copying John Naylor <john.naylor@enterprisedb.com>
Re: [PATCH] Optimize json_lex_string by batching character copying Andres Freund <andres@anarazel.de>
Re: [PATCH] Optimize json_lex_string by batching character copying Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCH] Optimize json_lex_string by batching character copying Andres Freund <andres@anarazel.de>
Re: [PATCH] Optimize json_lex_string by batching character copying John Naylor <john.naylor@enterprisedb.com>
Re: [PATCH] Optimize json_lex_string by batching character copying John Naylor <john.naylor@enterprisedb.com>
Re: [PATCH] Optimize json_lex_string by batching character copying Nathan Bossart <nathandbossart@gmail.com>
Re: [PATCH] Optimize json_lex_string by batching character copying John Naylor <john.naylor@enterprisedb.com>
Re: [PATCH] Optimize json_lex_string by batching character copying Nathan Bossart <nathandbossart@gmail.com>
Re: [PATCH] Optimize json_lex_string by batching character copying Nathan Bossart <nathandbossart@gmail.com>
Re: [PATCH] Optimize json_lex_string by batching character copying John Naylor <john.naylor@enterprisedb.com>
Re: [PATCH] Optimize json_lex_string by batching character copying Nathan Bossart <nathandbossart@gmail.com>
Re: [PATCH] Optimize json_lex_string by batching character copying Nathan Bossart <nathandbossart@gmail.com>
Re: [PATCH] Optimize json_lex_string by batching character copying John Naylor <john.naylor@enterprisedb.com>
Re: [PATCH] Optimize json_lex_string by batching character copying Nathan Bossart <nathandbossart@gmail.com>
Re: [PATCH] Optimize json_lex_string by batching character copying John Naylor <john.naylor@enterprisedb.com>
Re: [PATCH] Optimize json_lex_string by batching character copying Nathan Bossart <nathandbossart@gmail.com>
Re: [PATCH] Optimize json_lex_string by batching character copying John Naylor <john.naylor@enterprisedb.com>
Re: [PATCH] Optimize json_lex_string by batching character copying Nathan Bossart <nathandbossart@gmail.com>
Re: [PATCH] Optimize json_lex_string by batching character copying John Naylor <john.naylor@enterprisedb.com>
Re: [PATCH] Optimize json_lex_string by batching character copying John Naylor <john.naylor@enterprisedb.com>
Re: [PATCH] Optimize json_lex_string by batching character copying John Naylor <john.naylor@enterprisedb.com>
Re: [PATCH] Optimize json_lex_string by batching character copying Nathan Bossart <nathandbossart@gmail.com>
Re: [PATCH] Optimize json_lex_string by batching character copying John Naylor <john.naylor@enterprisedb.com>
Re: [PATCH] Optimize json_lex_string by batching character copying John Naylor <john.naylor@enterprisedb.com>
Re: [PATCH] Optimize json_lex_string by batching character copying John Naylor <john.naylor@enterprisedb.com>
Re: [PATCH] Optimize json_lex_string by batching character copying Andrew Dunstan <andrew@dunslane.net>
On Tue, Aug 23, 2022 at 01:03:03PM +0700, John Naylor wrote:
> On Tue, Aug 23, 2022 at 10:32 AM Nathan Bossart
>> Here's a new version of the patch with the 32-bit changes and calls to
>> lfind() removed.
> 
> LGTM overall. My plan is to split out the json piece, adding tests for
> that, and commit the infrastructure for it fairly soon. Possible
> bikeshedding: Functions like vector8_eq() might be misunderstood as
> comparing two vectors, but here we are comparing each lane with a
> scalar. I wonder if vector8_eq_scalar() et al might be more clear.

Good point.  I had used vector32_veq() to denote vector comparison, which
would extend to something like vector8_seq().  But that doesn't seem
descriptive enough.  It might be worth considering vector8_contains() or
vector8_has() as well.  I don't really have an opinion, but if I had to
pick something, I guess I'd choose vector8_contains().

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


В списке pgsql-hackers по дате отправления
От: Zhihong Yu
Дата:
От: Jonathan S. Katz
Дата:
Сообщение: Re: SQL/JSON features for v15
FAQ