newCTFE is getting ported to 2.092

Guillaume Piolat first.last at gmail.com
Sun Jun 7 12:47:25 UTC 2020


On Saturday, 6 June 2020 at 22:43:03 UTC, Stefan Koch wrote:
>
> for this code:
> uint f(uint x)
> {
>     uint acc;
>     foreach(i; 0 .. x) acc += x;
>     return acc;
> }
>
> pragma(msg, f(ushort.max * 2));
>
> oldCtfeTime: 150 milliseconds.
> newCtfeTime:  12 milliseconds.
>
> around a 12x speedup for simple stuff like this.
> For more complicated cases the numbers are going to be more 
> varied.

Hi Stefan,

Like many others here, I can't wait to use newCTFE :)


More information about the Digitalmars-d mailing list