[PostGIS] #5974: Add matching finishGEOS() to all initGEOS()
PostGIS
trac at osgeo.org
Fri Oct 10 13:49:55 PDT 2025
#5974: Add matching finishGEOS() to all initGEOS()
--------------------------+---------------------------
Reporter: ezimanyi | Owner: pramsey
Type: enhancement | Status: new
Priority: medium | Milestone: PostGIS 3.6.1
Component: postgis | Version: 3.5.x
Resolution: | Keywords:
--------------------------+---------------------------
Comment (by pramsey):
No, the initGEOS() call checks the global "handle" and if it's non-null is
creates one on the heap. Subsequent calls find a non-null value and do not
bother. So that first initialization is shared by all subsequent calls to
initGEOS by that backend. Which could be a lot of calls. This is why
sticking a finishGEOS at the end of every function call is not necessarily
a grand idea.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5974#comment:6>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list