Re: Which is faster ?
- Posted by bernie Feb 18, 2009
- 935 views
mattlewis said...
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
Thanks Derek and Matt for the information.
I gave up using maps because i kept running
into problems that I could not trace the origin of
and the maps seemed to be slower because of the overhead of calling them.