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

From Bruce Momjian
Subject Re: [HACKERS] gperf anyone?
Date
Msg-id 200001190152.UAA11497@candle.pha.pa.us
Whole thread Raw
In response to Re: [HACKERS] gperf anyone?  (Alfred Perlstein <bright@wintelcom.net>)
Responses Re: [HACKERS] gperf anyone?
List pgsql-hackers
> A perfect hash should be much faster at the trivial expense of some space.
> 
> >From the distribution:
>  While teaching a data structures course at University of California,
>  Irvine, I developed a program called GPERF that generates perfect hash
>  functions for sets of key words.  A perfect hash function is simply:
>  
>           A hash function and a data structure that allows
>           recognition of a key word in a set of words using
>           exactly 1 probe into the data structure.
> 
> 
> > We also can not distribute GNU code.
> 
> I'm pretty sure that the code the gperf outputs is not covered under the
> GPL, just gperf itself.
> 

Can you run our keywords.c using our method and gperf and see if there
is any speed difference?


--  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: Bruce Momjian
Date:
Subject: Re: [HACKERS] Index recreation in vacuum
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Index recreation in vacuum