Re: benchmarking Flex practices

From: John Naylor <john(dot)naylor(at)2ndquadrant(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: benchmarking Flex practices
Date: 2020-01-02 23:56:28
Message-ID: CACPNZCuQUejMsKy1Ym42-Z8o3T8MDOHffG_uSDc0aJ=3VbueFA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I wrote:

> I no longer use state variables to track scanner state, and in fact I
> removed the existing "state_before" variable in ECPG. Instead, I used
> the Flex builtins yy_push_state(), yy_pop_state(), and yy_top_state().
> These have been a feature for a long time, it seems, so I think we're
> okay as far as portability. I think it's cleaner this way, and
> possibly faster.

I thought I should get some actual numbers to test, and the results
are encouraging:

master v10
info 1.56s 1.51s
str 1.18s 1.14s
unicode 1.33s 1.34s
uescape 1.44s 1.58s

--
John Naylor https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Melanie Plageman 2020-01-03 01:21:55 Re: Extracting only the columns needed for a query
Previous Message Gavin Flower 2020-01-02 23:38:09 Re: color by default