Don't call sizeDynArr so many times