Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41280 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53418 invoked from network); 19 Oct 2008 19:11:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Oct 2008 19:11:37 -0000 Authentication-Results: pb1.pair.com header.from=chx1975@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=chx1975@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.200.168 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: chx1975@gmail.com X-Host-Fingerprint: 209.85.200.168 wf-out-1314.google.com Received: from [209.85.200.168] ([209.85.200.168:46694] helo=wf-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 42/9F-29559-6668BF84 for ; Sun, 19 Oct 2008 15:11:36 -0400 Received: by wf-out-1314.google.com with SMTP id 26so1479423wfd.26 for ; Sun, 19 Oct 2008 12:11:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:mime-version:content-type:content-transfer-encoding :content-disposition:x-google-sender-auth; bh=6ZC9JKgVABAVRVP47aUOeivcAu+kG9mbWAcMspc4k68=; b=In6VZC8eCB+b0tstMTRvNzzGDGcw7zpoNSuLPgxSMkWqRsYGtaJ1BAnJ7zvlO9WHsa KlG2fBFT+cquSVQkenhZhIBPAlAQWKuWgHwrBRqT6adnOb4dW9xMGLzGiEVIHvtOi5ic SO9x/HY0pXZXEY1LxxxKXLePQMP117b+xhb+w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition:x-google-sender-auth; b=KoGpdx8GrYO2fQFeCsdEXa7D09c4L3D7fAq1KlDXWwJ4giuDYpmO/vkZLmLX6AFcGU YVMF/6S+WMCPdWRJ8B+ZQWAL+zsdAhb2+E8p0g79lsjv53W3rMLmtBmou/N2Q4Yhoej0 5EIRpDNdjwSccRLLyA7UTabcHy4t0psSfNSs4= Received: by 10.142.11.2 with SMTP id 2mr2671772wfk.29.1224443492405; Sun, 19 Oct 2008 12:11:32 -0700 (PDT) Received: by 10.143.12.16 with HTTP; Sun, 19 Oct 2008 12:11:32 -0700 (PDT) Message-ID: <7e270cea0810191211w2cb77075y5e0ad78c2f7306f7@mail.gmail.com> Date: Sun, 19 Oct 2008 12:11:32 -0700 Sender: chx1975@gmail.com To: internals@lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: bdeb8212c6065daf Subject: An optimization idea From: karoly@negyesi.net ("Karoly Negyesi") Hi, I think zend_hash_compare could get a healthy speed boost in some cases if first it would check whether the two variables passed to it are actually the same (because of "reference counting"). Sorry, my C skills are way too rusty to write the patch which is likely to be just a few lines long. Regards, Karoly Negyesi