[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] passwd file fwacking



On Apr 13, Ronald J Kimball said:

>> Speed up your program with a unary + and map(EXPR,LIST):
>
>I see no noticeable difference in a simple Benchmark of map EXPR vs map
>BLOCK.  Do you have an example that demonstrates your claim?

My grep-sift program used to use grep BLOCK LIST, but when given a larger
LIST (about 50 elements) my benchmarks showed grep EXPR, LIST to save
time.

I swear I saw a mention of EXPR vs BLOCK in map() and grep() somewhere in
the Perl docs, or maybe in PCB or the Camel.

-- 
MIDN 4/C PINYAN, NROTCURPI, US Naval Reserve             japhy@pobox.com
http://www.pobox.com/~japhy/                  http://pinyaj.stu.rpi.edu/
PerlMonth - An Online Perl Magazine            http://www.perlmonth.com/
The Perl Archive - Articles, Forums, etc.    http://www.perlarchive.com/


==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe