Improving performance in numerical computations