#40559 [Opn->Bgs]: UTF-8 PCRE process speed too slowly
| From: | tony2001@php.net | Date: | Tue, 20 Feb 2007 15:22:40 +0000 |
| Subject: | #40559 [Opn->Bgs]: UTF-8 PCRE process speed too slowly | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-109184@lists.php.net to get a copy of this message | ||
ID: 40559
Updated by: tony2001@php.net
Reported By: hunreal at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: PCRE related
Operating System: FreeBSD 6.2, Windows
PHP Version: 5.2.1
New Comment:
The processing is done by PCRE library, not PHP.
Please report this problem to PCRE developers.
Previous Comments:
------------------------------------------------------------------------
[2007-02-20 15:10:45] hunreal at gmail dot com
Description:
------------
From PHP 5.2.0, I found the speed of PCRE process UTF-8 pattern is too
slowly.
Reproduce code:
---------------
http://www.hshh.org/temp/test.phps
Script is UTF-8 Simplified Chinese string pcre_replace testing.
I was also tested replace PCRE lib of php 5.2.0 from 6.7 to 6.6 not
bundled, no different result.
Expected result:
----------------
FreeBSD, PHP 5.2.1, process time: 3.76s (dual p3-1.26G).
Windows2003, PHP 5.2.0, process time: 17.91s (Pentium-M 1.7G)
If I don't set 'pcre.backtrack_limit' to '-1', script will break
pcre_replace.
Actual result:
--------------
PHP 5.1.6 at FreeBSD, process time: 0.93s
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40559&edit=1