Re: strtr() performance degradation

From: Date: Tue, 04 Jun 2013 23:37:53 +0000
Subject: Re: strtr() performance degradation
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-67631@lists.php.net to get a copy of this message
On Tue, 04 Jun 2013 22:12:41 +0200, Dmitry Stogov <dmitry@zend.com> 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. -- Gustavo Lopes

« previous php.internals (#67631) next »