Cost of assoc array?
bearophile via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed May 14 03:20:49 PDT 2014
Chris:
> Is there any huge difference as regards performance and memory
> footprint between the two? Or is 2. basically 1. under the hood?
An associative array is a rather more complex data structure, so
if you don't need it, use something simpler. There is difference
in both the amount of memory used and performance (in many cases
such difference doesn't matter). In D there are also differences
in the way they are initialized from a null or fat null.
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list