Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24150 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33683 invoked by uid 1010); 19 Jun 2006 02:51:04 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 33645 invoked from network); 19 Jun 2006 02:51:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jun 2006 02:51:04 -0000 Authentication-Results: pb1.pair.com header.from=iliaal@gmail.com; domainkeys=good DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: iliaal@gmail.com X-Host-Fingerprint: 64.233.184.237 wr-out-0506.google.com Linux 2.4/2.6 Received: from ([64.233.184.237:37294] helo=wr-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id 69/BD-25433-EB506944 for ; Sun, 18 Jun 2006 22:02:39 -0400 Received: by wr-out-0506.google.com with SMTP id 67so896518wri for ; Sun, 18 Jun 2006 19:02:43 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:in-reply-to:references:mime-version:x-priority:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer:sender; b=YbWz052B4p4itxHXFghdGFYKYWfltxH7jDh/8lJQqNuNXLKkblnETaLysw3UhWsdwCDQHBRdIbmzPnoRqgJik7YEe2Ufd0SYxgy6Uc7Svt64z4NzkqwihHoJhJ4X7RFG0ROdoq9Ozj9zpSDnpEIW5C8raJlUhdZHKQDQVTJ/Ivg= Received: by 10.64.49.20 with SMTP id w20mr435454qbw; Sun, 18 Jun 2006 19:02:41 -0700 (PDT) Received: from ?192.168.1.6? ( [72.59.8.142]) by mx.gmail.com with ESMTP id e14sm2023137qba.2006.06.18.19.02.40; Sun, 18 Jun 2006 19:02:41 -0700 (PDT) In-Reply-To: <002901c692de$108b2fb0$0100a8c0@pc07653> References: <002901c692de$108b2fb0$0100a8c0@pc07653> Mime-Version: 1.0 (Apple Message framework v750) X-Priority: 3 Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-ID: Cc: "PHPdev" , , Content-Transfer-Encoding: 7bit Date: Sun, 18 Jun 2006 22:02:34 -0400 To: Nuno Lopes X-Mailer: Apple Mail (2.750) Sender: Ilia Alshanetsky Subject: Re: [PHP-DEV] messing with branch prediction From: ilia@prohost.org (Ilia Alshanetsky) Looks like an interesting patch, if it does not cost us any performance and only offers either no gain or a small gain I'd say it would be worth inclusion. Perhaps branch prediction will work better with newer versions of gcc like 4.0 or 4.1 On 18-Jun-06, at 9:49 AM, Nuno Lopes wrote: > Hello, > > Yesterday I was playing with branch prediction in the Zend VM > executor. Although I didn't have any noticeable performance > improvement within the bench.php script, I've put the patch on- > line, because someone else might want to mess with it too :) (but > with care..) > > patch: http://mega.ist.utl.pt/~ncpl/zend_branch_prediction.txt > gcc docs: http://gcc.gnu.org/onlinedocs/gcc/Other- > Builtins.html#index-g_t_005f_005fbuiltin_005fexpect-2440 > > the zend.h part of the patch is based on the similar macros (with > the same name, too) found in the Linux kernel. > > I made & tested the patch in a Centrino laptop with gcc 3.4, so it > might be the cause of getting no relevant performance increase. On > CPUs with longer pipelines (like Pentium 4/NetBurst architecture), > the performance increase might be noticeable. > > > Happy hacking :) > Nuno > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > Ilia Alshanetsky