Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51540 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30299 invoked from network); 27 Feb 2011 11:51:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Feb 2011 11:51:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=j.boggiano@seld.be; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=j.boggiano@seld.be; sender-id=pass Received-SPF: pass (pb1.pair.com: domain seld.be designates 74.125.82.170 as permitted sender) X-PHP-List-Original-Sender: j.boggiano@seld.be X-Host-Fingerprint: 74.125.82.170 mail-wy0-f170.google.com Received: from [74.125.82.170] ([74.125.82.170:63220] helo=mail-wy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D3/B4-53531-0AA3A6D4 for ; Sun, 27 Feb 2011 06:51:00 -0500 Received: by wyf19 with SMTP id 19so2720000wyf.29 for ; Sun, 27 Feb 2011 03:50:54 -0800 (PST) Received: by 10.216.171.76 with SMTP id q54mr3601572wel.93.1298807454004; Sun, 27 Feb 2011 03:50:54 -0800 (PST) Received: from [192.168.1.7] (9-141.198-178.cust.bluewin.ch [178.198.141.9]) by mx.google.com with ESMTPS id t5sm1333790wes.9.2011.02.27.03.50.53 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 27 Feb 2011 03:50:53 -0800 (PST) Message-ID: <4D6A3A9C.50308@seld.be> Date: Sun, 27 Feb 2011 12:50:52 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6 MIME-Version: 1.0 To: "internals@lists.php.net" X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Volnitsky substring search algo From: j.boggiano@seld.be (Jordi Boggiano) Heya, I just wanted to attract attention to this new substring search algorithm that seems faster better stronger.. According to the author of course. I don't quite have the required knowledge to evaluate this properly, but thought it was worth investigating if someone wants to. http://volnitsky.com/project/str_search/ Note that I contacted the author and although he intends to release it as GPL, he said he would probably give out a special license for PHP if needed, since the GPL is afaik not compatible with the PHP license. He also said that his algo was more useful for big haystacks than small ones due to the startup overhead, but it seems that his code is anyway falling back to std::search for smallish haystacks. Cheers -- Jordi Boggiano @seldaek :: http://seld.be/