Re: Mason-checkins digest, Vol 1 #742 - 5 msgs

Dave Rolsky <[email protected]> Mon, 15 Aug 2005 14:03:34 -0500 (CDT)
Newsgroups gmane.comp.web.mason.devel
Message-ID <[email protected]>
On Sun, 14 Aug 2005, Jonathan Swartz wrote:

> Dave - I disagree with the change to "grep". The $m->print code used grep 
> originally, but someone at work did some profiling and determined that the 
> for loop was faster. Probably because the grep creates a whole new list, 
> whereas the for loop just populates $_ with an alias to each element.
>
> Unless you've profiled this and found otherwise, can we change it back to use 
> a for loop?

Sure, but please add a comment.  I changed it because I think the grep is 
a more natural construct, so I'd probably forget and change it next year 
without a comment ;)


-dave

/*===================================================
VegGuide.Org                        www.BookIRead.com
Your guide to all that's veg.       My book blog
===================================================*/


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf