pgsql: Simplify json lexing state

Поиск
Список
Период
Сортировка
От John Naylor
Тема pgsql: Simplify json lexing state
Дата
Msg-id E1o9irM-001lS7-M8@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Simplify json lexing state

Instead of updating the length as we go, use a const pointer to end of
the input, which we know already at the start.

This simplifies the coding and may improve performance slightly, but
the real motivation for doing this is to make further changes in this
area easier to reason about.

Discussion:
https://www.postgresql.org/message-id/CAFBsxsGhaR2KQ5eisaK%3D6Vm60t%3DaxhD8Ckj1qFoCH1pktZi%2B2w%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3de359f18f2bfbc96272bd265264aa5c2f247ca4

Modified Files
--------------
src/common/jsonapi.c | 23 ++++++++---------------
1 file changed, 8 insertions(+), 15 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Reformat some more node comments
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Remove T_Join and T_Plan