
9 Jun
2015
9 Jun
'15
5:59 p.m.
Peter Dimov
Louis Dionne wrote:
Indeed, you are using a Map when what you really want is a Tuple, since your keys are integers.
When testing Map's performance, it's a bit hard to come up with a sequence of keys that are not isomorphic to integers.
Note that I also wrote: However, I can easily imagine another example where you actually need the functionality of a Map. See below for performance comments.
Oleg could in principle have used X
but would that really have changed much?
No, that wouldn't have changed much. Regards, Louis