Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33735 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63576 invoked by uid 1010); 5 Dec 2007 16:22:36 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 63561 invoked from network); 5 Dec 2007 16:22:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Dec 2007 16:22:36 -0000 Authentication-Results: pb1.pair.com smtp.mail=robert@interjinn.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=robert@interjinn.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain interjinn.com from 66.11.173.122 cause and error) X-PHP-List-Original-Sender: robert@interjinn.com X-Host-Fingerprint: 66.11.173.122 unknown Received: from [66.11.173.122] ([66.11.173.122:57870] helo=blobule.interjinn.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 35/73-20707-940D6574 for ; Wed, 05 Dec 2007 11:22:35 -0500 Received: by blobule.interjinn.com (Postfix, from userid 2000) id 2ACC05AD64D; Wed, 5 Dec 2007 11:22:30 -0500 (EST) To: Brian Moon Cc: Dmitry Stogov , Guilherme Blanco , scott.mcnaught@synergy8.com, Rasmus Lerdorf , Antony Dovgal , Andi Gutmans , Cristian Rodriguez , internals@lists.php.net In-Reply-To: <4756CB57.7030207@dealnews.com> References: <698DE66518E7CA45812BD18E807866CEF88FDD@us-ex1.zend.net> <7d5a202f0712031900i386f8964s675da26cc93af3fe@mail.gmail.com> <47550FAB.30002@daylessday.org> <698DE66518E7CA45812BD18E807866CEF890ED@us-ex1.zend.net> <475578BE.40908@daylessday.org> <4755A797.1020905@lerdorf.com> <-4460533375996444588@unknownmsgid> <47566735.20101@zend.com> <4756CB57.7030207@dealnews.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: InterJinn Date: Wed, 05 Dec 2007 11:22:29 -0500 Message-ID: <1196871749.14915.25.camel@blobule> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Subject: Re: [PHP-DEV] Garbage collector patch From: robert@interjinn.com (Robert Cummings) 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! ...........................................................