reserve delta vector beforehand to avoid realocations.