Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70474 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9911 invoked from network); 2 Dec 2013 23:02:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Dec 2013 23:02:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=glopes@nebm.ist.utl.pt; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=glopes@nebm.ist.utl.pt; sender-id=unknown Received-SPF: error (pb1.pair.com: domain nebm.ist.utl.pt from 193.136.128.21 cause and error) X-PHP-List-Original-Sender: glopes@nebm.ist.utl.pt X-Host-Fingerprint: 193.136.128.21 smtp1.ist.utl.pt Linux 2.6 Received: from [193.136.128.21] ([193.136.128.21:42597] helo=smtp1.ist.utl.pt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A6/35-11395-C911D925 for ; Mon, 02 Dec 2013 18:02:54 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp1.ist.utl.pt (Postfix) with ESMTP id CF4B57000357; Mon, 2 Dec 2013 23:02:49 +0000 (WET) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at ist.utl.pt Received: from smtp1.ist.utl.pt ([127.0.0.1]) by localhost (smtp1.ist.utl.pt [127.0.0.1]) (amavisd-new, port 10025) with LMTP id rNLmPHjzi9u1; Mon, 2 Dec 2013 23:02:49 +0000 (WET) Received: from mail2.ist.utl.pt (mail.ist.utl.pt [IPv6:2001:690:2100:1::8]) by smtp1.ist.utl.pt (Postfix) with ESMTP id 60CC270004B6; Mon, 2 Dec 2013 23:02:49 +0000 (WET) Received: from [192.168.4.237] (52D95449.cm-11-1b.dynamic.ziggo.nl [82.217.84.73]) (Authenticated sender: ist155741) by mail2.ist.utl.pt (Postfix) with ESMTPSA id CBFE4200775F; Mon, 2 Dec 2013 23:02:48 +0000 (WET) Message-ID: <529D1197.5000305@nebm.ist.utl.pt> Date: Tue, 03 Dec 2013 00:02:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: Laruence CC: Dmitry Stogov , PHP Internals , Zeev Suraski , Gadi Goldbarg References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: strtr() performance degradation From: glopes@nebm.ist.utl.pt (Gustavo Lopes) On 02-12-2013 08:02, Laruence wrote: > On Wed, Jun 5, 2013 at 7:37 AM, Gustavo Lopes wrote: >> On Tue, 04 Jun 2013 22:12:41 +0200, Dmitry Stogov wrote: >> >>> This "good" algorithm that doesn't work well for "worse" cases makes about >>> 15% slowdown of ZF2 based applications. >>> It also slowdowns wordpress and other apps, but not so significantly. >>> >>> It's definitely doesn't work well for real-life applications :( >>> Something must be dome (e.g. usage of old or new algorithms depending on >>> different argument patterns). >>> >> >> All right, I'll take a look at what can be done. It's quite possible we can >> even do better than the old algorithm for short texts, but falling back to >> it in those cases is always an option. > Hey: > > is there any new progress of this ? :) > The progress consists of writing of scripts to test the point where to switch algorithms and trying some improvements on the old one without as expensive preprocessing steps. Now, this was in the summer... I'll have some time in the holidays to pick up this and some other PHP-related backlog; that said, if there's some impatience (which would be perfectly understandable...), I wouldn't mind if someone reverted to the previous state in the meantime. -- Gustavo Lopes