fatcoder
Member
|
EE::Map find() Performance
I'm using EE:Map to store data with a Str key. I'm just wondering if the find() method is performance expensive?
Does it search through the map looking for the key value? If the desired key happens to be the last in the list, does it search the entire list before returning?
Or does Map use some sort of cached lookup or something internally to make find() calls fast?
|
|
03-31-2012 12:31 PM |
|
PsychoBoy
Member
|
RE: EE::Map find() Performance
|
|
03-31-2012 01:47 PM |
|
fatcoder
Member
|
RE: EE::Map find() Performance
Makes sense that its a binary search considering you need to supply a compare function. Nevertheless... I am in fact ideally looking for "instant" retrieval based on a string key. Thanks for the offer jonathon... I would definitely like to see your implementation.
|
|
03-31-2012 11:48 PM |
|