Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33793 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6026 invoked by uid 1010); 6 Dec 2007 10:25:59 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 6011 invoked from network); 6 Dec 2007 10:25:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Dec 2007 10:25:59 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from [212.25.124.162] ([212.25.124.162:8313] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BD/70-33463-53EC7574 for ; Thu, 06 Dec 2007 05:25:59 -0500 Received: (qmail 10598 invoked from network); 6 Dec 2007 10:25:53 -0000 Received: from internal.zend.office (HELO ?127.0.0.1?) (10.1.1.1) by internal.zend.office with SMTP; 6 Dec 2007 10:25:53 -0000 Message-ID: <4757CE2B.9090305@zend.com> Date: Thu, 06 Dec 2007 13:25:47 +0300 User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Derick Rethans CC: Andi Gutmans , Guilherme Blanco , scott.mcnaught@synergy8.com, Rasmus Lerdorf , Antony Dovgal , 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> <698DE66518E7CA45812BD18E807866CEF89334@us-ex1.zend.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Garbage collector patch From: dmitry@zend.com (Dmitry Stogov) Derick Rethans wrote: > On Tue, 4 Dec 2007, Andi Gutmans wrote: > >> To clarify I meant there's a tri-state (not compiled in, compiled in >> but collection turned off, compiled in but collection turned on). My >> recommendation was to always compile it in but to keep collection >> turned off by default. > > That's totally fine with me. With David's patch you could turn it on > with both an ini setting (PHP_INI_ALL) or with a function. Can the > "improved" one do so as well? The GC has two stages. 1) GC information collection (called very often during php script execution and doesn't take a lot of time) 2) unreferenced cycle collection (called seldom but may take long time) The original patch wrapped (1) and (2) with checks for GC on/off. The "improved" one only (2). The checks for GC on/off in original patch took just a bit less time than the whole GC information collection in the "improved". Thanks. Dmitry. > regards, > Derick