On 31/10/12 21:28, Agustín K-ballo Bergé wrote:

Quoting from my original mail, what I want is to replace the following
geometric vector expression:

     p = q + r;

by

     p[0] = q[0] + r[0],
     p[1] = q[1] + r[1],
     ...,
     p[N] = q[N] + r[N],
     p;

It **can** be done with a transform and that's what I did. The optimized
proto expression evaluates ~33% faster than the original proto expression.

You could also evaluate the expression directly instead of rebuilding a new expression to evaluate.

That would probably increase compilation performance.
_______________________________________________
proto mailing list
proto@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/proto

Reply via email to