Managing memory usage at Compile Time with DMD

wobbles via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Apr 9 03:23:05 PDT 2015


On Thursday, 9 April 2015 at 10:04:09 UTC, John Colvin wrote:
> On Thursday, 9 April 2015 at 09:49:39 UTC, wobbles wrote:
>> Another possibilty I was looking at was to write a tool that 
>> will spit out all combinations at runtime, and then import 
>> these back into the bot at compile time to build a lookup 
>> table that way.
>>
>> Thanks!
>
> This is definitely a better idea. I would probably load them at 
> runtime instead, it scales better.

But if the compiler knows about all the values at compile time, 
it will be able to optimise things better than at runtime?

Cheers folks!
Will get to writing this now.


More information about the Digitalmars-d-learn mailing list