Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:29595 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68795 invoked by uid 1010); 21 May 2007 06:29:53 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 68780 invoked from network); 21 May 2007 06:29:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 May 2007 06:29:53 -0000 Authentication-Results: pb1.pair.com header.from=planetbeing@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=planetbeing@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.162.230 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: planetbeing@gmail.com X-Host-Fingerprint: 64.233.162.230 nz-out-0506.google.com Linux 2.4/2.6 Received: from [64.233.162.230] ([64.233.162.230:53225] helo=nz-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 73/89-05892-D5C31564 for ; Mon, 21 May 2007 02:29:52 -0400 Received: by nz-out-0506.google.com with SMTP id k1so2063668nzf for ; Sun, 20 May 2007 23:29:47 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:to:cc:references:in-reply-to:subject:date:message-id:mime-version:content-type:content-transfer-encoding:x-mailer:thread-index:content-language; b=XagI4t16yIZzyo23f9JR07WRBV7Y3sElu4pm8NqoMWqOtqHc6dJvMa8FTnrtrb9VWdpK1Qd21ExO/8Cvwi0b2t2dOjFvhZCiXrbnm1HVPW2oMx0qD7uzrfQ0Uu48L+E3QvkzZ+bzaPtD3ST+LgxSQt5nLODnKT5Ihioov7IRAfM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:cc:references:in-reply-to:subject:date:message-id:mime-version:content-type:content-transfer-encoding:x-mailer:thread-index:content-language; b=YhL+eQBwWB0SQHcXANodl/8qrB0T7H6J+wZ8FNNqiuo54Jqy8RhBwmMx06z3RwZIxKcHpMETL07Ttll0YiWftQqxVGj/g2nrf02BJsSwKkRgLG1NTOZe2ld+5B6myP1IaZ+r42iZinbAB6geVYG4Yw3bDlcetOcY6BWKVx8LJoM= Received: by 10.114.135.1 with SMTP id i1mr2484160wad.1179728986977; Sun, 20 May 2007 23:29:46 -0700 (PDT) Received: from DavidPC ( [24.21.139.96]) by mx.google.com with ESMTP id z20sm17890988pod.2007.05.20.23.29.45; Sun, 20 May 2007 23:29:45 -0700 (PDT) To: "'Stanislav Malyshev'" Cc: References: <465022BE.1020905@hardened-php.net> <7d5a202f0705201415s71982fd2jb61b8bffbb7ba6de@mail.gmail.com> <46513546.5000303@zend.com> <7d5a202f0705202303s2ff4d0cdg1157c1e245c3c2e4@mail.gmail.com> <46513745.7030701@zend.com> In-Reply-To: <46513745.7030701@zend.com> Date: Sun, 20 May 2007 23:29:03 -0700 Message-ID: <000001c79b71$543e0970$fcba1c50$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcebboX8g/NYsqoWTeub02ks+Geh9wAAal/g Content-Language: en-us Subject: RE: [PHP-DEV] Dismantling the lies... From: planetbeing@gmail.com ("David") Hi, I'm David Wang and I'm one of the students that is participating in = Google Summer of Code for this summer. My project addresses detecting = reference cycles in PHP, and I'm following this discussion because it = seems very pertinent to what I will be working with this summer. I'm = currently planning on implementing Bacon and Rajan's synchronous cycle = collection algorithm based on reference counting. The algorithm requires = performing a simple additional task for each increment or decrement of = the reference counter. There is a branch in the decrement operation but = there is no branch in the increment operation. I wasn't aware that a = simple branch such as the one in the proposed patch would incur = significant performance penalties on modern superscalar processors, = since both execution paths would be followed simultaneously. However, I = would also be very grateful for any performance data anyone can provide = on this subject (and really, any other advice anyone has!). The function call does strike me as completely unnecessary and the = additional stack operations required are expensive. I'm willing to be = that if the function was converted to a macro, the proposed solution = would be a workable fix. Just my two cents; I'm not very experienced = with the PHP internals yet. Thanks all! David Wang -----Original Message----- From: Stanislav Malyshev [mailto:stas@zend.com]=20 Sent: Sunday, May 20, 2007 11:08 PM To: Cristian Rodriguez Cc: internals@lists.php.net Subject: Re: [PHP-DEV] Dismantling the lies... > no, no performance tests has been done over that patch, but as rasmus > said. it is probably negible or acceptable for real world.. I only > knows it works with real like code ( i tried ezpublish, phpmyadmin) > and passes the PHP test suite correctly ( or no worse than without the > patch) Well, php test suite is a functional test, so if the patch is done=20 correctly it'd pass of course. I'm moe worried about the performance -=20 my experience shows that the guesses are often wrong when talked about=20 performance effects in complicated code. If you would have time to run a = benchmark using something like bench.php and maybe some more complicated = code, it'd be nice to know the result. --=20 Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/ --=20 PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php