optimized the use of std::atomic in the spline length calculator