-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GEOSBuildArea performance degradation #583
Comments
GEOS-3.9 seems to be faster than 3.8!
|
The slowdown affects PostGIS Topology operation as reported here: |
GEOS-3.10 is also slow as GEOS-main so the regression is between 3.9 and 3.10
|
From PostGIS I can already spot the difference using ST_Polygonize, which according to git repository didn't get many changes between 3.9 and 3.10 so now I'm wondering if the CMake based build (enforced in 3.10) dropped the default compiler optimization. Time passes: YES, while automake had -O2 by default, the cmake build does not pass any -O switch to the compiler. Is this a known issue ? |
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ../geos-dir |
Setting CXXFLAGS environment does not hav any effect ? |
None that I can see. |
CMake defaults to a |
Confirmed, it was lack of optimization flags. I'll change the configure script handling of --enable-debug to use RelWithDebInfo |
The performance of GEOSBuildArea degraded from 3.8 to current main.
Passing a set of 9295 noded linestrings to the function result in a 359909 vertices polygon but while GEOS-3.8 can come to the solution within 2 seconds, GEOS-main ( as of 9af19e8 ) takes over 4 seconds.
Logs:
3.8:
main:
The text was updated successfully, but these errors were encountered: