#40559 [NEW]: UTF-8 PCRE process speed too slowly
| From: | hunreal at gmail dot com | Date: | Tue, 20 Feb 2007 15:10:45 +0000 |
| Subject: | #40559 [NEW]: UTF-8 PCRE process speed too slowly | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-109183@lists.php.net to get a copy of this message | ||
From: hunreal at gmail dot com
Operating system: FreeBSD 6.2, Windows
PHP version: 5.2.1
PHP Bug Type: PCRE related
Bug description: UTF-8 PCRE process speed too slowly
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 bug report at http://bugs.php.net/?id=40559&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40559&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40559&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40559&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40559&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=40559&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40559&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40559&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40559&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40559&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40559&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=40559&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=40559&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40559&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40559&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40559&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40559&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40559&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40559&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40559&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40559&r=mysqlcfg