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

From Don Baccus
Subject Re: [HACKERS] gperf anyone?
Date
Msg-id 3.0.1.32.20000119104735.00ee9330@mail.pacifier.com
Whole thread Raw
In response to Re: [HACKERS] gperf anyone?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
At 11:40 PM 1/18/00 -0500, Tom Lane wrote:

>I agree with Don that the performance benefit is likely to be
>unmeasurable.  Still, there could be a win: we currently have to modify
>keywords.c by hand every time we have to add/delete a keyword.  Does
>gperf offer any aid for maintaining the keyword list?  If so, that'd
>be sufficient reason to switch to it...

If so, yeah, it might make sense.  Without looking at the existing
code, though, the existing "binary search on a fixed array" makes
me think of a list of keywords in alphabetical order.  If true,
entering new keywords in alphabetical order doesn't seem like a terrible
burden on the implementor.  The resulting list is probably more readable
if kept alphabetical anyway...



- Don Baccus, Portland OR <dhogaza@pacifier.com> Nature photos, on-line guides, Pacific Northwest Rare Bird Alert
Serviceand other goodies at http://donb.photo.net.
 


pgsql-hackers by date:

Previous
From: Michael Meskes
Date:
Subject: Re: [HACKERS] Cannot compile psql
Next
From: Patrick Welche
Date:
Subject: pg_dump disaster