pgsql/src/backend/utils/adt regexp.c

From: thomas(at)postgresql(dot)org (Thomas Lockhart)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql/src/backend/utils/adt regexp.c
Date: 2002-06-15 02:49:48
Message-ID: 20020615024948.05AD6475A2C@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

CVSROOT: /cvsroot
Module name: pgsql
Changes by: thomas(at)postgresql(dot)org 02/06/14 22:49:47

Modified files:
src/backend/utils/adt: regexp.c

Log message:
Search the existing regular expression cache as a ring buffer.
Will optimize the case for repeated calls for the same expression,
which seems to be the most common case. Formerly, always searched
from the first entry.
May want to look at the least-recently-used algorithm to make sure it
is identifying the right slots to reclaim. Seems silly to do math when
it seems that we could simply use an incrementing counter...

Browse pgsql-committers by date

  From Date Subject
Next Message Thomas Lockhart 2002-06-15 03:00:09 pgsql/ oc/src/sgml/filelist.sgml oc/src/sgml/f ...
Previous Message Thomas Lockhart 2002-06-15 02:41:57 pgsql/doc/src/sgml installation.sgml