Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33734 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58572 invoked by uid 1010); 5 Dec 2007 16:12:12 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 58557 invoked from network); 5 Dec 2007 16:12:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Dec 2007 16:12:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=brianm@dealnews.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=brianm@dealnews.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain dealnews.com designates 129.41.69.137 as permitted sender) X-PHP-List-Original-Sender: brianm@dealnews.com X-Host-Fingerprint: 129.41.69.137 mail.dealnews.com Linux 2.6 Received: from [129.41.69.137] ([129.41.69.137:51892] helo=mail.dealnews.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1A/92-20707-ADDC6574 for ; Wed, 05 Dec 2007 11:12:12 -0500 Received: (qmail 31544 invoked from network); 5 Dec 2007 16:01:28 -0000 Received: from h125.23.91.75.ip.alltel.net (HELO macdough.local) (brianm@[75.91.23.125]) (envelope-sender ) by mail.dealnews.com (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 5 Dec 2007 16:01:28 -0000 Message-ID: <4756CB57.7030207@dealnews.com> Date: Wed, 05 Dec 2007 10:01:27 -0600 User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Dmitry Stogov CC: Guilherme Blanco , scott.mcnaught@synergy8.com, Rasmus Lerdorf , Antony Dovgal , Andi Gutmans , Cristian Rodriguez , internals@lists.php.net 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> In-Reply-To: <47566735.20101@zend.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Garbage collector patch From: brianm@dealnews.com (Brian Moon) 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 =)