Optimization in BezierCurveUtils.