2 ms·
> using an array and doing a linear search will be faster than a hashmap lookup For small enough sets of data, this will likely be true, simply because you don
by wtetzner 10y ago
> using an array and doing a linear search will be faster than a hashmap lookup
For small enough sets of data, this will likely be true, simply because you don't have to compute a hash.
Of course, it likely won't scale very well.