Does D cache the hashes? Strings are immutable so there is absolutely no reason why the hash ever need to be computed more than once.
Essentially the hash should be attached to strings like their length and address.
Does D compute the hash of a string every time it is looked up? If so, any way to optimize that it?