Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 95889 invoked from network); 3 May 2005 16:18:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 May 2005 16:18:13 -0000 Received: (qmail 73108 invoked by uid 500); 3 May 2005 15:35:54 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 73049 invoked by uid 500); 3 May 2005 15:35:54 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 73019 invoked by uid 99); 3 May 2005 15:35:51 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from starbug.mhsoftware.com (HELO mail.mhsoftware.com) (67.154.139.115) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 03 May 2005 08:35:46 -0700 Received: from localhost (localhost [127.0.0.1]) by mail.mhsoftware.com (Postfix) with ESMTP id 78C891E8F5 for ; Tue, 3 May 2005 09:33:54 -0600 (MDT) Received: from mail.mhsoftware.com ([127.0.0.1]) by localhost (starbug [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09833-02 for ; Tue, 3 May 2005 09:33:52 -0600 (MDT) Received: from emp00 (c-67-176-51-42.hsd1.co.comcast.net [67.176.51.42]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mail.mhsoftware.com (Postfix) with ESMTP id 52EE71EC96 for ; Tue, 3 May 2005 09:33:52 -0600 (MDT) From: "George Sexton" To: "'Tomcat Developers List'" Subject: RE: Code Submission - Wild Card Aliases Date: Tue, 3 May 2005 09:33:32 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Thread-Index: AcVP7QwsGDYkvPr+SSKAvlHbWo4EdAACFDvw In-Reply-To: <427784ED.3080109@apache.org> Message-Id: <20050503153352.52EE71EC96@mail.mhsoftware.com> X-Virus-Scanned: by amavisd-new at mhsoftware.com X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 0.05% lower is hardly a sufficient reason to reject this. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 =20 > -----Original Message----- > From: Remy Maucherat [mailto:remm@apache.org]=20 > Sent: Tuesday, May 03, 2005 8:04 AM > To: Tomcat Developers List > Subject: Re: Code Submission - Wild Card Aliases >=20 > George Sexton wrote: > > I have completed the coding in o.a.t.u.http.mapper.Mapper=20 > to implement > > wild-card aliases. > >=20 > > If a request for a host is made, and that host is not=20 > found, the code tests > > the host and aliases list and looks for wild-cards. > >=20 > > So, a host name of www.mydomain.com would match an alias of=20 > *.mydomain.com. > > This additional level of testing is only done if the the=20 > presented host name > > is not found in the standard host list. Once a host is=20 > found via wild-card, > > it is added to the standard host list. Subsequent requests=20 > for that host > > name will find it via the standard search mechanism. > >=20 > > As part of the conversion, I re-worked the test harness=20 > code and expanded it > > to be a lot more complete. The output of the new test=20 > harness with the > > unmodified Mapper code matches identically the output of=20 > the modified > > mapper. IOW, I'm 99% confident that the behavior of the=20 > Mapper matches the > > old Mapper. > >=20 > > The time differential between the two runs is around 500ms=20 > over 1 million > > iterations. I.E. the original code runs in 8000 ms for 1=20 > million iterations > > of the testing code, while the new code takes 8500ms. The=20 > new code adds > > approximately 0.05 % to the time for a lookup. > >=20 > > I am running the modified mapper code with 5.5.9 on an=20 > installation that has > > 40 hosts configured and it seems to be working correctly. > >=20 > > I'd really appreciate it if a committer would get this=20 > added to the source > > tree. > >=20 > > The complete modified Mapper.java file can be downloaded from: > >=20 > > http://www.mhsoftware.com/~gsexton/Mapper.java > >=20 > > If a decision is made to reject this patch, I'd appreciate=20 > knowing why. If > > there's something wrong from a coding or style perspective,=20 > I'd be happy to > > fix things. >=20 > -1 for lower performance and questionable use case. > (I didn't get the patch, but I don't really wish to) >=20 > R=E9my >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org >=20 >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org