Performance related changes. Mostly from analyzing auto-vectorization.