improved speed in spline tdf