[postgis-tickets] [PostGIS] #4614: Optimize stringbuffer_append to avoid strlen calls

PostGIS trac at osgeo.org
Fri Jan 3 10:37:01 PST 2020


#4614: Optimize stringbuffer_append to avoid strlen calls
-------------------------+---------------------------
 Reporter:  Algunenano   |      Owner:  Algunenano
     Type:  enhancement  |     Status:  assigned
 Priority:  medium       |  Milestone:  PostGIS 3.1.0
Component:  postgis      |    Version:  master
 Keywords:               |
-------------------------+---------------------------
 Related to https://trac.osgeo.org/postgis/ticket/4543

 stringbuffer_append is used to output txt (ST_AsText), KML and X3D, and it
 calculates the length of the string parameter even when the library
 already knows it (constant or the output of a previous function call).

 I plan to add an extra function (`stringbuffer_append_len`) that allows
 you to pass the length of the string and simply memcpy's it.

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4614>
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