Return-Path: Delivered-To: apmail-perl-dev-archive@www.apache.org Received: (qmail 2521 invoked from network); 22 Aug 2005 17:54:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Aug 2005 17:54:31 -0000 Received: (qmail 56470 invoked by uid 500); 22 Aug 2005 17:54:31 -0000 Delivered-To: apmail-perl-dev-archive@perl.apache.org Received: (qmail 56287 invoked by uid 500); 22 Aug 2005 17:54:30 -0000 Mailing-List: contact dev-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@perl.apache.org Received: (qmail 56274 invoked by uid 99); 22 Aug 2005 17:54:30 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2005 10:54:30 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [195.80.154.36] (HELO mail.logilune.com) (195.80.154.36) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2005 10:54:46 -0700 Received: from [127.0.0.1] (localhost.logilune.com [127.0.0.1]) by mail.logilune.com (Postfix) with ESMTP id EAAA3D6EC6; Mon, 22 Aug 2005 19:54:24 +0200 (CEST) Message-ID: <430A1155.9010600@stason.org> Date: Mon, 22 Aug 2005 10:54:29 -0700 From: Stas Bekman Organization: Hope, Humanized User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.11) Gecko/20050730 X-Accept-Language: en-us, en, he, ru MIME-Version: 1.0 To: "Philippe M. Chiasson" CC: Geoffrey Young , "Philip M. Gollucci" , dev@perl.apache.org Subject: Re: [PATCH] Apache2::Reload References: <430845DA.6060209@p6m7g8.com> <4309F922.3020500@modperlcookbook.org> <430A0F06.6040303@ectoplasm.org> In-Reply-To: <430A0F06.6040303@ectoplasm.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Philippe M. Chiasson wrote: > Geoffrey Young wrote: > >>>- while (my($key, $file) = each %Apache2::Reload::INCS) { >>>+ foreach my $key (sort { $a cmp $b } keys %Apache2::Reload::INCS) { >>>+ my $file = $Apache2::Reload::INCS{$key}; >>I hate each. > > > each is perfect when iterating over a large hash and not caring about ordering. > Doesn't need to build a large array to hold _all_ the keys, so it's a major > speed improvement. right, but A-R is a dev module :) (well most of the time :) > I am not sure what is gained here by sorting ? Just that what Philip was after: easier to spot whether some module was reloaded or not. +1 -- __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:stas@stason.org http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org For additional commands, e-mail: dev-help@perl.apache.org