Bug #1327: strtr() very slow

From: Date: Mon, 19 Apr 1999 19:14:45 +0000
Subject: Bug #1327: strtr() very slow
Groups: php.dev 
Request: Send a blank email to php-dev+get-5141@lists.php.net to get a copy of this message
From: fuf@fuf.sh.cvut.cz Operating system: linux-2.2.5-ac3 PHP version: 3.0.7 PHP Bug Type: Performance problem Bug description: strtr() very slow $converted = strtr($buffer, "<13characters>", "<13characters>"); where <13characters> are 13 characters in iso-8859-2 or windows-1250 encoding. converting approximately 15kb buffer takes 2-3 seconds on a pII 450 with 128mb of ram. the same conversion can be done from shell with the 'tr' command _instantly_. -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#5141) next »