php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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_.

Patches

Pull Requests

History

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-2025 The PHP Group
All rights reserved.
Last updated: Sun Jan 05 09:01:27 2025 UTC