Closed GoogleCodeExporter closed 9 years ago
Also, map.size() seems to have a ceiling of ~844.
I tried resize(100000) at startup but this only affects the load factor and has
no
bearing on the size.
Is there a way of increasing the number of buckets?
I'm only concerned with rapid lookups; don't really care for memory
Original comment by rags.iye...@gmail.com
on 11 Dec 2009 at 9:36
You need to specify a hash function for char*. Otherwise, you're hashing
pointers,
which will not work as you want. See the first example in
http://google-sparsehash.googlecode.com/svn/trunk/doc/dense_hash_map.html
} I tried resize(100000) at startup but this only affects the load factor and
has no
} bearing on the size.
That's not correct. It actually does affect the size, but not the load factor.
You can also try using the one-arg constructor where you pass in the size,
rather
than having to call resize after creating the object.
Original comment by csilv...@gmail.com
on 11 Dec 2009 at 9:58
Original issue reported on code.google.com by
rags.iye...@gmail.com
on 11 Dec 2009 at 9:26