Re: Garbage collector patch

From: Date: Wed, 05 Dec 2007 16:01:27 +0000
Subject: Re: Garbage collector patch
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-33734@lists.php.net to get a copy of this message
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. -- Brian Moon Senior Developer ------------------------------ http://dealnews.com/ It's good to be cheap =)

« previous php.internals (#33734) next »