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

From Bruce Momjian
Subject Re: [HACKERS] gperf anyone?
Date
Msg-id 200001192012.PAA20286@candle.pha.pa.us
Whole thread Raw
In response to Re: [HACKERS] 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...]
> On 2000-01-18, Bruce Momjian mentioned:
> 
> > Can you run our keywords.c using our method and gperf and see if there
> > is any speed difference?
> 
> It seems to have a speed advantage of about 2.5. But in practice that
> means that 1 million words take half a second. It's not a big deal to me,
> I was just wondering before I throw it out. I guess it really only makes a
> difference for compilers, which operate on 1000+ lines.
> 

The big difference may be that the compiler has variables/types that are
added dynamically while running, while our list is static.  Insert time
for our types is zero because we don't add SQL keywords at runtime.

--  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: Peter Eisentraut
Date:
Subject: Re: [HACKERS] gperf anyone?
Next
From: The Hermit Hacker
Date:
Subject: Re: [HACKERS] gperf anyone?