Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CBFA418519 for ; Tue, 24 Nov 2015 18:03:59 +0000 (UTC) Received: (qmail 95252 invoked by uid 500); 24 Nov 2015 18:03:59 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 95169 invoked by uid 500); 24 Nov 2015 18:03:59 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 95159 invoked by uid 99); 24 Nov 2015 18:03:59 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Nov 2015 18:03:59 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id C2280180992 for ; Tue, 24 Nov 2015 18:03:58 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.653 X-Spam-Level: X-Spam-Status: No, score=0.653 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_NEUTRAL=0.652, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=comcast.net Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id BLwkk9Pf2CzM for ; Tue, 24 Nov 2015 18:03:49 +0000 (UTC) Received: from resqmta-po-05v.sys.comcast.net (resqmta-po-05v.sys.comcast.net [96.114.154.164]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id CCB582064F for ; Tue, 24 Nov 2015 18:03:48 +0000 (UTC) Received: from resomta-po-18v.sys.comcast.net ([96.114.154.242]) by resqmta-po-05v.sys.comcast.net with comcast id lW3e1r0025E3ZMc01W3niC; Tue, 24 Nov 2015 18:03:47 +0000 Received: from [192.168.199.10] ([69.251.84.114]) by resomta-po-18v.sys.comcast.net with comcast id lW3m1r00B2U0RYt01W3mJz; Tue, 24 Nov 2015 18:03:47 +0000 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: svn commit: r1715938 - /httpd/httpd/trunk/modules/cache/cache_util.c From: Jim Jagielski In-Reply-To: Date: Tue, 24 Nov 2015 13:03:46 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <3DEF82C9-6DCF-42BF-8B51-AD08B08DAC27@jaguNET.com> References: <20151123200516.D444B3A043E@svn01-us-west.apache.org> <3F16527F-A2FE-4CEE-A87C-E98BB6DF07ED@sharp.fm> To: dev@httpd.apache.org X-Mailer: Apple Mail (2.2104) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1448388227; bh=MpVZTUQEI5Q56NIIcVGM/xsjo3NYPtojidIGrgDHqfE=; h=Received:Received:Content-Type:Mime-Version:Subject:From:Date: Message-Id:To; b=UmgkHz4je3sp+Qe4FkcWQVvYFnYlD6S8IRQmbywT6oOBBxJ96fGqP82qHvEe+Xuyb hTIoizB90VBWUXUTZR9g+nj+hOgK+j+S8ZGobCfTWj2gjQv73wTLZve7DzEf2t6u0M jpj/MDJZHnpps30J4NZwHCZV8Vf2z8Br4o7AuJgN+GQCnSxRzma4NSxOgKQAkLq2b3 RTKVIGGtnB8cPlxBeHHj/WN1l5ff4yfH83L21js5/0UqdSC4qZMhQWfYts1IVGJ+lX N8/pMktduyzwCgJmgQJIbC0q5VHqe7aolmUDyZP+YJkTpMJNGA60w03tjeAXJWiTTL gEWP4dJ3CFcfw== > On Nov 24, 2015, at 11:18 AM, Graham Leggett wrote: >=20 > On 24 Nov 2015, at 6:15 PM, Yann Ylavic wrote: >=20 >> Not sure: >> if (!strcmp(h, "max-age") >> || ap_cmpcasestr(h, "max-age")) >> is likely to be a bit faster than a single ap_cmpcasestr() when it >> matches, but much slower when it does not. >=20 > Yep, that=E2=80=99s the point. >=20 > The vast majority of comparisons are lowercase for tokens like this. = Might as well test that fast path first before testing the worst case = scenario. >=20 Is there REALLY that much of a diff between if (ucharmap[*ps1] !=3D ucharmap[*ps2]) { and if (*ps1 !=3D *ps2) { to muddle up the code like that though??