Re: [PHP-DEV] huge memory usage in concat op, ZE2

2002-12-09 Thread Tom Fishwick
yup, works for me, thanks andi. Andi Gutmans <[EMAIL PROTECTED]> wrote: > > Tom, > > This should be fixed now. Please update your Zend CVS and let me know if it > works for you. > > Andi > > At 08:06 PM 12/8/2002 -0800, Tom Fishwick wrote: > >I was reading an email from stdin. But regardles

Re: [PHP-DEV] huge memory usage in concat op, ZE2

2002-12-09 Thread Andi Gutmans
Tom, This should be fixed now. Please update your Zend CVS and let me know if it works for you. Andi At 08:06 PM 12/8/2002 -0800, Tom Fishwick wrote: I was reading an email from stdin. But regardless of bad coding style :-), the script is using _way_ more memory than it should. $s = ''; while

Re: [PHP-DEV] huge memory usage in concat op, ZE2

2002-12-08 Thread Andi Gutmans
I'll try and see what I can do about this. Andi At 11:56 AM 12/8/2002 -0800, Tom Fishwick wrote: I was reading an email from stdin. But regardless of bad coding style :-), the script is using _way_ more memory than it should. $s = ''; while(strlen($s) < 266768) { $s.= 'd'; } this code

Re: [PHP-DEV] huge memory usage in concat op, ZE2

2002-12-08 Thread Tom Fishwick
I was reading an email from stdin. But regardless of bad coding style :-), the script is using _way_ more memory than it should. $s = ''; while(strlen($s) < 266768) { $s.= 'd'; } this code uses 151Megs on my system. the same code uses about 2megs with php4.3. php4.3 seems to realloc/mem

Re: [PHP-DEV] huge memory usage in concat op, ZE2

2002-12-08 Thread Andi Gutmans
At 12:30 AM 12/8/2002 -0800, Tom wrote: hey there, I'm using the cvs and ZE2, there seems to be some huge memory usage when concatenating a string to a length over 262080 bytes, when the string length gets to that size the malloc call inside zend_mm_add_memory_block starts grabing memory 262168 b

[PHP-DEV] huge memory usage in concat op, ZE2

2002-12-08 Thread Tom
hey there, I'm using the cvs and ZE2, there seems to be some huge memory usage when concatenating a string to a length over 262080 bytes, when the string length gets to that size the malloc call inside zend_mm_add_memory_block starts grabing memory 262168 bytes at a time, every 8th concatenation (