Using core.reflect to rewrite code

max haughton maxhaton at gmail.com
Sat Aug 14 14:32:08 UTC 2021


On Saturday, 14 August 2021 at 11:15:50 UTC, Stefan Koch wrote:
> On Friday, 13 August 2021 at 12:51:21 UTC, Adam D Ruppe wrote:
>> [...]
>
> Thanks for your input.
> In the meantime I have been able to reproduce the behavior in a 
> template.
> `WrapperString` in the following gist 
> https://gist.github.com/UplinkCoder/e60584a2c8f46ae4a490117b878ecec1
>
> The performance of the template is roughly 2 times worse when 
> compared to the `core.reflect` solution still.

That's very promising, is this currently relying on your Task 
work or could it work in the compiler as is?


More information about the Digitalmars-d mailing list