Caching in druntime TypeInfo classes

rsw0x via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 30 20:25:39 PDT 2015


On Tuesday, 30 June 2015 at 23:23:46 UTC, Mike wrote:
> On Tuesday, 30 June 2015 at 21:17:13 UTC, H. S. Teoh wrote:
>>[...]
>
> IMO the root cause of the trouble implementing your idea is the 
> fact that the whole TypeInfo implementation is janky.  I think 
> we should implement some flavor of Adam Ruppe's idea to move 
> TypeInfo to the runtime 
> (https://issues.dlang.org/show_bug.cgi?id=12270).  Then the 
> implementation would be more straightforward...and it would 
> solve another major problem that I'm having trying to use D for 
> resource-constrained systems 
> (http://bugzilla.gdcproject.org/show_bug.cgi?id=184) without 
> having to resort to so much hackery.  It may also help reduce 
> binary sizes on other platforms, which has come up a few times 
> recently.
>
> [...]

+1
typeinfo situation is ... bad.


More information about the Digitalmars-d mailing list