Feb
25
Minimizing Calculation Per Data Mark (#TweakThursday 37)
In examining a Mandelbrot Fractal viz created by Zen Master Noah Salvaterra, we found that the visualization is slow. Yes, it involves quite a bit of calculations. By applying simple optimizing techniques, we can accelerate the calculations significantly. By evaluating our optimized viz against Noah's viz on Tableau desktop 10.5, we achieved 250% to 300% accelerations.
How? Initially, I tried to minimize where ever possible the calculations such as the following.
1.Computation of r (calculation per every data mark)
float(mid([u],1,find([u],",")-1))^2+float(mid([u],find([u],",")+1))^2 We suspect that find([u],",") may have been computed twice (depending on Tableau's compiler!). Anyway, we compute it once and create a new field called [Position,].
How? Initially, I tried to minimize where ever possible the calculations such as the following.
1.Computation of r (calculation per every data mark)
float(mid([u],1,find([u],",")-1))^2+float(mid([u],find([u],",")+1))^2 We suspect that find([u],",") may have been computed twice (depending on Tableau's compiler!). Anyway, we compute it once and create a new field called [Position,].