3 ms·
wxy[:,:,k] += mu*conj(err[i,k])*X This should probably be wxy[:,:,k] .+= mu*conj(err[i,k]).*X so allocations are avoided. This doubled the speed for me, al
by webshit2 4y ago
wxy[:,:,k] += mu*conj(err[i,k])*X
This should probably be
wxy[:,:,k] .+= mu*conj(err[i,k]).*X
so allocations are avoided. This doubled the speed for me, although I don't what size inputs are realistic. The @benchmark and @profile macros are good for this stuff.
- crabbygrabby 4y agoWhy are you trying to optimize for performance if you don't have a goal in mind?