Re: [PHP-DEV] Substring writes and buffered char streams

2004-08-07 Thread Wez Furlong
> Strings are cheap in Java too. The issue is object creation and cleanup. When the > strings are very large or very numerous, we could be talking about thousands of > substrings per page hit. This increases the strain on both the clock speed and the > memory of the host machine. Theory asid

Re: [PHP-DEV] Substring writes and buffered char streams

2004-08-07 Thread Elfyn McBratney
Hello, On Sat, Aug 07, 2004 at 09:42:04AM -0400, [EMAIL PROTECTED] wrote: > Hi Wez. Here are some clarifications... > > On 8/7/2004 Wez. wrote: > >I suppose we could add that. Keep in mind that strings in PHP aren't > >hugely expensive unless you are doing something wrong (tm) like using > >10MB

Re: [PHP-DEV] Substring writes and buffered char streams

2004-08-07 Thread jtl_phpdotnet
Hi Wez. Here are some clarifications... On 8/7/2004 Wez. wrote: >I suppose we could add that. Keep in mind that strings in PHP aren't >hugely expensive unless you are doing something wrong (tm) like using >10MB strings. Strings are cheap in Java too. The issue is object creation and cleanup. W

Re: [PHP-DEV] Substring writes and buffered char streams

2004-08-07 Thread Wez Furlong
On Sat, 07 Aug 2004 09:14:35 -0400, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > (1) Writing an arbitrary substring of a string directly to a stream without first > creating a string object for the substring. I.E. There is no print($string, $start, > $length) or fwrite($resource, $string, $len