PERF: 15% speed improvement for linear interpolation.