Re: Garbage collector patch

From: Date: Wed, 05 Dec 2007 16:22:29 +0000
Subject: Re: Garbage collector patch
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-33735@lists.php.net to get a copy of this message
On Wed, 2007-12-05 at 10:01 -0600, Brian Moon wrote: > Dmitry Stogov wrote: > > In general this patch will use more memory. > > (4 bytes more for each heap allocated zval). > > > > The only advantage is automatic cycle collection, but most web > > applications doesn't make cycles. > > Could it be that this code should only be enabled for the CLI sapi? > That is where I would want it most. Only in my cli apps do I run into > having to trick the garbage collection into working in my favor. I > usually end having my loop just call a function on each pass. That > seems to help with memory use in PHP currently. Still comes down the issue of binary compatibility with respect to modules and such. Cheers, Rob. -- ........................................................... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! ...........................................................

« previous php.internals (#33735) next »