Clemens:
> In short, has anyone seen this before and knows of a workaround? Of course I 
> could rewrite the array expressions as loops, but I seem to recall Walter 
> mentioning that array expressions are optimized using SIMD operations. Is 
> that true? If so, I'm hesitant to throw that overboard since performance is 
> an issue (realtime audio synthesis).<

If you care for performance then *always* time your code (in this case the two 
alternative versions with and without array ops), because what Walter and docs 
say is always less important that what the reality is. I've yet to find 
situations where array expressions have given me a speed-up over the normal 
code generated by LDC (if performance is quite important then don't use DMD).
Also note that currently array ops are quite buggy and slow when the arrays are 
short.

Bye,
bearophile

Reply via email to