Preallocation matters almost not at all for Java HashMaps. This is just slow. Full stop.
On Tue, May 31, 2011 at 10:13 PM, Lance Norskog <[email protected]> wrote: > Also, you can tell HashMap you'll be adding lots of entries when it > starts. This might help it run faster. But, yes, this is bizarrely > slow. >
