Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70461 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54976 invoked from network); 2 Dec 2013 07:02:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Dec 2013 07:02:47 -0000 Authentication-Results: pb1.pair.com header.from=laruence@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=laruence@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.170 as permitted sender) X-PHP-List-Original-Sender: laruence@gmail.com X-Host-Fingerprint: 209.85.217.170 mail-lb0-f170.google.com Received: from [209.85.217.170] ([209.85.217.170:39548] helo=mail-lb0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 75/40-52529-8803C925 for ; Mon, 02 Dec 2013 02:02:45 -0500 Received: by mail-lb0-f170.google.com with SMTP id w7so8427467lbi.1 for ; Sun, 01 Dec 2013 23:02:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=DLf52I59iBAhuwAVgJ+vl4I2rCM4A1bwTUBtCuv0Yn4=; b=xG/DpOPTcawhOasV/YJ4G88kdGmODWvU9sm4JTjXgr7HDW2pfQDqfwgyZOZZ+DLzyX FVGX+CVYsDJx+TeKG6NOUpUt6YGx518o35Qb5CcsKWDng0hXj/Ij1z+QVnWGRp+L8FwO lOUxRh+lC/d1R84IVh+ghaQDItxJiFM8VntjLEd0veCLjNU8nfVN+3LPhIUmlLAmc666 /uHakChwKJqYE66YeTx+TKLkpJymslg2iHI5di9pEkuSMrv73VOEROPf4s8WI/scBga8 mHYrSeo9TeJukEpCA1zsJd50z9UQnwlRO88gVYHlhtlA+GjE3e/uo84eiR7pZYVFqMdY Pt9A== X-Received: by 10.112.199.225 with SMTP id jn1mr160071lbc.49.1385967749200; Sun, 01 Dec 2013 23:02:29 -0800 (PST) MIME-Version: 1.0 Sender: laruence@gmail.com Received: by 10.114.157.199 with HTTP; Sun, 1 Dec 2013 23:02:09 -0800 (PST) In-Reply-To: References: Date: Mon, 2 Dec 2013 15:02:09 +0800 X-Google-Sender-Auth: i-BbjLzDzLxfWF3NZmcXn7vGqK4 Message-ID: To: Gustavo Lopes Cc: Dmitry Stogov , PHP Internals , Zeev Suraski , Gadi Goldbarg Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Re: strtr() performance degradation From: laruence@php.net (Laruence) 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 ? :) thanks > > > -- > Gustavo Lopes > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > -- Laruence Xinchen Hui http://www.laruence.com/