From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Noah Misch <noah(at)leadboat(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Greg Smith <greg(at)2ndquadrant(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Single client performance on trivial SELECTs |
Date: | 2011-04-14 21:07:20 |
Message-ID: | BANLkTinibo4PBvwTA=ThX_WO=MpiPP+QMA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Thu, Apr 14, 2011 at 12:45 PM, Noah Misch <noah(at)leadboat(dot)com> wrote:
>> It shouldn't be
>> terribly difficult to come up with some kind of hash function based
>> on, say, the first two characters of the keyword that would be a lot
>> faster than what we're doing now.
>
> I'd look at `gperf', which generates code for this from your keyword list.
I thought of that, but wasn't sure we wanted to introduce a dependency
on that tool. That might be a pain, especially on Windows. But maybe
we could steal the basic approach.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2011-04-14 21:10:11 | Re: WIP: Allow SQL-language functions to reference parameters by parameter name |
Previous Message | Tom Lane | 2011-04-14 20:55:46 | Re: WIP: Allow SQL-language functions to reference parameters by parameter name |