Thu, 03/21/2024 - 19:40
Forums:
It seams that, updating from 7.5 to 7.8 (0141024df595cdc8db3004927ca48c249776603b) fitting a spline through points has become 10 times slower.
Here is the small code fragment
GeomAPI_PointsToBSpline GeomBSplineFitter(Points, DegMin, DegMax, Continuity, Tol3D ); Handle(Geom_BSplineCurve) curve = GeomBSplineFitter.Curve(); return curve;
in my test DegMin and DegMax were 3, continuity C2 and Tol3D 5.0. Points contains 150 points.
so I'm not sure where this is coming from and if it has been changed in the mean time.
Fri, 03/22/2024 - 10:54
Git log doesn't show any meaningful changes within specific tool. Could you share a complete scenario (e.g. points to construct the curve) to reproduce it? And what are the actual numbers?
Fri, 03/22/2024 - 12:58
I will make a small example c++ project with the data and upload here when it's ready
Fri, 03/22/2024 - 13:54
Please check the profile which OCCT was build. Release or debug and 7.8 recommended to be build with production CMake flag. I don't see any possible reason for that kind of regression. But any samples will be helpful.
Best regards, Dmitrii.
Fri, 03/22/2024 - 21:09
In a seperate test project I made I could not repeat the factor 10, more like a factor 2.
For the next code, 7.5 takes 138 sec, 7.8 252 sec. Both in debug mode
Fri, 03/22/2024 - 21:38
Please check only in release mode. Debug can't describe correct behavior.
Fri, 03/22/2024 - 21:42
The related tickets: 0030621, 29359. If in release mode the difference will be less then 1.5 I don't see reasons for fix.