Re: NAMEDATALEN Changes

From: nconway(at)klamath(dot)dyndns(dot)org (Neil Conway)
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: NAMEDATALEN Changes
Date: 2002-02-14 18:37:43
Message-ID: 20020214183743.GA10423@klamath.dyndns.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Feb 14, 2002 at 12:59:40AM -0500, Neil Conway wrote:
> I've attached a pretty trivial patch that implements this. Instead of
> automatically hashing NAMEDATALEN bytes, hashname() uses only strlen()
> bytes: this should improve both the common case (small identifers, 5-10
> characters long), as well as reduce the penalty when NAMEDATALEN is
> increased. The patch passes the regression tests, FWIW. I didn't remove
> cc_hashname() -- I'll tackle that tomorrow unless anyone objects...

Okay, I've attached a new version that removes cc_hashname(). As with
the previous patch, this passes the regression tests. Feedback is welcome.

Cheers,

Neil

Attachment Content-Type Size
hash_len.patch text/plain 3.4 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Rocco Altier 2002-02-14 19:27:52 Re: When and where to check for function permissions
Previous Message Marc Lavergne 2002-02-14 17:50:13 Re: Upgrading to 7.2