Using core.reflect to rewrite code

Stefan Koch uplink.coder at googlemail.com
Thu Aug 12 04:47:52 UTC 2021


On Thursday, 12 August 2021 at 02:12:23 UTC, max haughton wrote:
> On Wednesday, 11 August 2021 at 23:58:21 UTC, Stefan Koch wrote:
>> On Tuesday, 10 August 2021 at 23:51:29 UTC, Stefan Koch wrote:
>>> [...]
>>
>> I've manged to improve the performance of using core.reflect 
>> by roughly 2x because I realized that class literals created 
>> by core.reflect don't need "scrubbing".
>>
>> [...]
>
> Can you profile it vs. a template metaprogramming solution?

Yes but I am still not quite sure how to write the equivalent 
template ;)



More information about the Digitalmars-d mailing list