|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1327 strtr() very slow
Submitted: 1999-04-19 15:14 UTC Modified: 1999-04-20 01:43 UTC
From: fuf at fuf dot sh dot cvut dot cz Assigned:
Status: Closed Package: Performance problem
PHP Version: 3.0.7 OS: linux-2.2.5-ac3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: fuf at fuf dot sh dot cvut dot cz
New email:
PHP Version: OS:


 [1999-04-19 15:14 UTC] fuf at fuf dot sh dot cvut dot cz
$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_.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1999-04-20 01:43 UTC] thies
should be fixed in latest cvs - we were using strlen a bit too heavy.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon May 17 23:01:23 2021 UTC