News for hackers. Stuff that matters.
Re:Show HN: Functional programming for modern Fortran by sampo on Thursday November 24, 2016 @11:49AM (#13031244)
> replace tail(x) with x(2:) in the internal implementations of fold[lr].

Tried this for foldl with gfortran. Totally helps. Summing 10 000 int64's, memory consumption drops from 400M to 4M. Also time complexity becomes linear.

There are no comments on this comment yet.