TypeFunction example: ImplictConvTargets

Stefan Koch uplink.coder at googlemail.com
Tue Oct 6 11:29:36 UTC 2020


On Tuesday, 6 October 2020 at 11:25:41 UTC, jmh530 wrote:
> On Tuesday, 6 October 2020 at 11:14:05 UTC, Stefan Koch wrote:
>> [snip]
>> The source code can be found here:
>>
>> https://gist.github.com/UplinkCoder/d29dd143b352d28390426a3ffedf9521
>>
>> So can the benchmark results.
>> Note: not importing std.meta gives the template version (xx.d) 
>> a speed boost of 3 milliseconds.
>
> Thanks for providing these results.
>
> You had previously provided some evidence of a significant 
> reduction in memory consumption. You might consider adding that 
> information (using these examples) to this gist to bolster your 
> argument.

Memory consumption is reduced by 2x roughly.

(adams and pauls version are about the same, with pauls sucking a 
bit more memory, perhaps because there is more to parse?)

I'll add it to the gist.


More information about the Digitalmars-d mailing list