Re: strpos() && KMP

From: Pavel Ajtkulov <ajtkulov(at)acm(dot)org>
To: decibel(at)decibel(dot)org
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: strpos() && KMP
Date: 2007-08-07 19:19:53
Message-ID: 1985342014.20070808001953@acm.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


> Do you have any performance test results for this?

I describe the worst case in first message (search 'aaa..aab' in
'aa..aa', "complete" N^2). It works some msec instead of several sec
(in current version).

Patch intends for artificial language (for example DNA, or
language with small alphabet, or regular language) only.

In natural language, KMP(and other search algo) haven't notable
advantages (+-5% time execution).

----
Ajtkulov Pavel
ajtkulov(at)acm(dot)org

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Decibel! 2007-08-07 21:45:38 Re: strpos() && KMP
Previous Message Andrew Dunstan 2007-08-07 18:11:03 Re: further WIP for COPYable logs