
Signature
You're never too young to have a Vietnam flashback
>i just don't get it:
>
[quoted text clipped - 13 lines]
>
> the above code takes up 70 MB of RAM. how??? any ideas?
You're storing one million items in a hash_map, which has significant
overhead (hash buckets and linked lists, etc), why are you surprised?
Because of the uncertain equality of floating-point numbers, using doubles
as hash_map keys has questionable utility.