Re: Which is faster ?
- Posted by mattlewis (admin) Feb 18, 2009
- 956 views
DerekParnell said...
No. Actually I mis-remembered. What I was thinking about was the difference between find() and map() - there is a point at which map() becomes faster than find(). But you are correct, find() is always faster than looping if you have an unordered sequence to scan through.
Ok. That I believe.
Matt