I dun a DIP, possibly the best DIP ever

Stefan Koch uplink.coder at googlemail.com
Sat Apr 25 10:32:22 UTC 2020


On Saturday, 25 April 2020 at 10:27:19 UTC, Walter Bright wrote:
> On 4/25/2020 2:49 AM, Stefan Koch wrote:
>> This is supposed to make using staticMap cheap?
>
> No. It's to make AliasSeq cheap, to remove motivation for 
> making a special syntactic construct for creating a tuple.
>
> Your benchmark shows indeed it has that effect, though you 
> didn't test a version that had both your ... and my AliasSeq 
> folded in. That result would be interesting.
>
> There may be some other common template patterns amenable to 
> compiler shortcuts.

As I've said before: AliasSeq is not the slow part.
As long as we don't create many templates they can be as 
expensive as they want to be.
Of course a speedup is always appreciated and I so no reason not 
to merge your PR.


More information about the Digitalmars-d mailing list