[postgis-tickets] [PostGIS] #4623: Optimize ST_AsBinary

PostGIS trac at osgeo.org
Mon Jan 20 07:47:12 PST 2020


#4623: Optimize ST_AsBinary
--------------------------+---------------------------
  Reporter:  Algunenano   |      Owner:  Algunenano
      Type:  enhancement  |     Status:  assigned
  Priority:  medium       |  Milestone:  PostGIS 3.1.0
 Component:  postgis      |    Version:  master
Resolution:               |   Keywords:
--------------------------+---------------------------

Comment (by Algunenano):

 A similar thing happens in the functions that output from a stringbuffer
 (ST_AsText, ST_AsKML...): the string is generated in the stringbuffer,
 copied for output and then copied again in `cstring_to_text` (which also
 calls strlen on the whole string, even though we already know its size).

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4623#comment:1>
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