Re: forall and do loop



Wade Ward <zaxfuuq@xxxxxxxxxxx> wrote:

So at first blush and knowing next to nothing
about compiler optimization, I would say that the formulation with the
forall would lend itself better to optimization on parallel processors.

See many prior discussions in the newsgroup. Forall is seldom faster
than the alternatives in practice. It was intended to be, but it just
doesn't work out that way.

(And, of course, I also agree with the sage advice of others in this
thread to pay attention to Knuth et. al.)

--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
.