Return-Path: Delivered-To: apmail-perl-dev-archive@www.apache.org Received: (qmail 96175 invoked from network); 10 Jan 2005 22:17:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 10 Jan 2005 22:17:32 -0000 Received: (qmail 62709 invoked by uid 500); 10 Jan 2005 22:17:30 -0000 Delivered-To: apmail-perl-dev-archive@perl.apache.org Received: (qmail 62696 invoked by uid 500); 10 Jan 2005 22:17:30 -0000 Mailing-List: contact dev-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@perl.apache.org Received: (qmail 62671 invoked by uid 99); 10 Jan 2005 22:17:29 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of gozer@ectoplasm.org designates 66.34.202.202 as permitted sender) Received: from Unknown (HELO minerva.ectoplasm.org) (66.34.202.202) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 10 Jan 2005 14:17:28 -0800 Received: from [172.28.57.123] (office4.tmcs.net [209.104.55.5]) by minerva.ectoplasm.org (Postfix) with ESMTP id B3E735EB1E; Mon, 10 Jan 2005 14:16:59 -0800 (PST) Message-ID: <41E2FFC0.6010505@ectoplasm.org> Date: Mon, 10 Jan 2005 14:20:48 -0800 From: "Philippe M. Chiasson" User-Agent: Mozilla Thunderbird 0.9 (X11/20041127) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Joe Schaefer Cc: dev@perl.apache.org Subject: Re: [Patch mp2] Case-insensitive PerlOptions References: <41E2E919.4090509@ectoplasm.org> <41E2F5AF.3010602@stason.org> <87pt0d9co9.fsf@gemini.sunstarsys.com> In-Reply-To: <87pt0d9co9.fsf@gemini.sunstarsys.com> X-Enigmail-Version: 0.89.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigBC4996F72FBC9A50C856A842" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --------------enigBC4996F72FBC9A50C856A842 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Joe Schaefer wrote: > Stas Bekman writes: > > [...] > >>-0: >> >>while it's fine for startup code, it'll affect >>modperl_config_is_perl_option_enabled, that may be called at request >>time == slowdown. > > Are the option strings in German or something? It can't > be a measurable performance difference to downcase a dozen > or so chars, can it? My simple benchmark with strcmp vs. strcasecmp show strcasecmp() to be around 10% slower: 3073412300/s => strcasecmp() 3485295200/s => strcmp() Overall, the slowdown is about .0000000000384 sec per call (avg). >>And that change may affect other things added in the future. > > Hopefully they don't depend on the case then. I really > see this as reducing user complaints; after all, httpd's > "Options" are case-insensitive as well. This patch came to be after trying to have the HTTPExpose option. I, personally, almost always make the assumption that httpd.conf directives are case-insensitive. -------------------------------------------------------------------------------- Philippe M. Chiasson m/gozer\@(apache|cpan|ectoplasm)\.org/ GPG KeyID : 88C3A5A5 http://gozer.ectoplasm.org/ F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3A5A5 --------------enigBC4996F72FBC9A50C856A842 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFB4v/LyzKhB4jDpaURAmQoAJ9wiD56cOf2oX/HfXFCBSKliuvocQCgsLhE V7qY/7KfFPpmy5fXRDJZ34w= =qbvf -----END PGP SIGNATURE----- --------------enigBC4996F72FBC9A50C856A842--