[Tickets #6660] Re: Fatal error with very big strings conversion

bugs at horde.org bugs at horde.org
Tue Apr 29 06:14:56 UTC 2008


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/6660
-----------------------------------------------------------------------
 Ticket             | 6660
 Updated By         | Matt Selsky <selsky at columbia.edu>
 Summary            | Fatal error with very big strings conversion
 Queue              | Horde Framework Packages
 Version            | FRAMEWORK_3
 Type               | Bug
 State              | Feedback
 Priority           | 3. High
 Milestone          |
 Patch              |
 Owners             |
-----------------------------------------------------------------------


Matt Selsky <selsky at columbia.edu> (2008-04-29 02:14) wrote:

mb_convert_encoding is way slower than utf8_encode on my system.  To
convert a 117 bytes (with 1,000,000 iterations) from ASCII to UTF-8 takes:

utf8_encode time: 15 seconds
mb_convert_encoding time: 46 seconds

Howerver, mb_convert_encoding() is able to deal with larger strings.  Eg:
50% of max memory instead of %25 max memory.




More information about the bugs mailing list