]> granicus.if.org Git - postgresql/commit
Search the existing regular expression cache as a ring buffer.
authorThomas G. Lockhart <lockhart@fourpalms.org>
Sat, 15 Jun 2002 02:49:47 +0000 (02:49 +0000)
committerThomas G. Lockhart <lockhart@fourpalms.org>
Sat, 15 Jun 2002 02:49:47 +0000 (02:49 +0000)
commitbad5fe9797f6935715f2423859336debce76b13b
tree0c153d99c408bdcb18a266081b70c53f29a8947e
parente62660080c23beeffa2b3caec44cc9ac4d8c242c
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...
src/backend/utils/adt/regexp.c