hasmap with tuple as key

Meta via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Feb 9 21:00:16 PST 2015


On Monday, 9 February 2015 at 21:22:29 UTC, Ondra wrote:
> Is there any drawback of doing this: string[Tuple!(int, int)] a;
>
> Especially performance one.
>
> Thanks.

Tuples are really just structs generated "on the fly", so they 
are very fast. Hashmaps use the GC, though, so keep that in mind.


More information about the Digitalmars-d-learn mailing list