Actually, using a string as a key in a hash map is nearly as efficient as
bare array indexing.

The reason is that hashes for strings are computed when the string is
created.

On Thu, Feb 23, 2012 at 7:09 PM, Dmitriy Lyubimov <[email protected]> wrote:

> All you say is true. It should be noted that using vector as a key is
> innefficient. Similarly to that using String as a key in a map is just
> about as inefficient for the same reason.
>
>

Reply via email to