[postgis-tickets] r15659 - Replace deep cloning with direct return of pointarrays

Paul Ramsey pramsey at cleverelephant.ca
Thu Sep 7 11:58:03 PDT 2017


Author: pramsey
Date: 2017-09-07 11:58:03 -0700 (Thu, 07 Sep 2017)
New Revision: 15659

Modified:
   trunk/postgis/lwgeom_in_gml.c
Log:
Replace deep cloning with direct return of pointarrays
constructed in GML parsing


Modified: trunk/postgis/lwgeom_in_gml.c
===================================================================
--- trunk/postgis/lwgeom_in_gml.c	2017-09-07 18:34:12 UTC (rev 15658)
+++ trunk/postgis/lwgeom_in_gml.c	2017-09-07 18:58:03 UTC (rev 15659)
@@ -683,7 +683,7 @@
 	ptarray_append_point(dpa, &p, LW_FALSE);
 	x = y = z = false;
 
-	return ptarray_clone_deep(dpa);
+	return dpa; /* ptarray_clone_deep(dpa); */
 }
 
 
@@ -750,7 +750,7 @@
 
     ptarray_append_point(dpa, &pt, LW_FALSE);
 
-	return ptarray_clone_deep(dpa);
+	return dpa; /* ptarray_clone_deep(dpa); */
 }
 
 
@@ -817,7 +817,7 @@
 
 	xmlFree(gmlposlist);
 
-	return ptarray_clone_deep(dpa);
+	return dpa; /* ptarray_clone_deep(dpa); */
 }
 
 



More information about the postgis-tickets mailing list