Re: [HACKERS] gperf anyone? - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] gperf anyone?
Date
Msg-id 200001190036.TAA07846@candle.pha.pa.us
Whole thread Raw
In response to gperf anyone?  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: [HACKERS] gperf anyone?
Re: [HACKERS] gperf anyone?
List pgsql-hackers
[Charset ISO-8859-1 unsupported, filtering to ASCII...]
> A while ago I played around with gperf (GNU perfect hash function
> generator), abusing the keyword lookup in parser/keyword.c as playground.
> Now before I delete this I was wondering if this would perhaps be of use
> to the general public. I don't know how huge the speed advantage of this
> is, I'm sure the parser/scanner speed is the least of our problems. But I
> thunk especially ecpg could benefit from this. Btw., gperf is used by GCC,
> so it's not a toy.

keywords are a fixed array, with a binary search to find a match.  Could
gperf be faster?  We also can not distribute GNU code.

--  Bruce Momjian                        |  http://www.op.net/~candle pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: The Hermit Hacker
Date:
Subject: Re: [HACKERS] gperf anyone?
Next
From: Alfred Perlstein
Date:
Subject: Re: [HACKERS] gperf anyone?