in reply to Re: grep, map vs. foreach performance
in thread grep, map vs. foreach performance
Hmmm.. I'm inclined to doubt that this is true for all cases. In principle, I'd agree, but saying that anything expecting a return list is too simple an assumtion.
I'm quite sure (although I'm too lazy now, to come up with some proof) that I'd find a map with a discarded return list that does something faster than an equivalent for/foreach.
BTW, has someone thought that a smart while() might be fastest anyway?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: grep, map vs. foreach performance
by particle (Vicar) on Sep 04, 2002 at 13:38 UTC | |
by Flexx (Pilgrim) on Sep 04, 2002 at 14:26 UTC | |
by sauoq (Abbot) on Sep 04, 2002 at 21:57 UTC |