On Friday, 31 May 2013 at 06:41:19 UTC, Manu wrote:
It would be nice
if array operations would unroll for short arrays. Particularly so for
static arrays!

It definitely is something we need to implement. There is just no excuse not to, and it hampers the practicality of a nice language feature. I didn't profile the original program yet, but I bet it's one of the major reasons why the LDC version is so slow.

I wonder where the best place to do this would be though. Doing it in the frontend would allow all three compilers to take advantage of the transformation, but it's really glue code stuff.

IIRC, GDC already does something like that?

David

Reply via email to