Caching in druntime TypeInfo classes

Jonathan M Davis via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 30 20:43:19 PDT 2015


On Wednesday, 1 July 2015 at 00:48:55 UTC, deadalnix wrote:

> This should not use typeinfo at all IMO.
>
> We have template to do exactly that.

Yeah. It's known at compile time whether a type has a custom 
toHash function, so it's pretty ridiculous to be looking that 
sort of thing up at runtime - _especially_ when it's slow to do 
so.

- Jonathan M Davis


More information about the Digitalmars-d mailing list