[postgis-devel] [PostGIS] #439: Improve stringbuffer_t performance
PostGIS
trac at osgeo.org
Mon Feb 22 11:55:04 PST 2010
#439: Improve stringbuffer_t performance
-------------------------+--------------------------------------------------
Reporter: pramsey | Owner: pramsey
Type: enhancement | Status: new
Priority: medium | Milestone: PostGIS 2.0.0
Component: postgis | Version: trunk
Keywords: |
-------------------------+--------------------------------------------------
Our borrowed stringbuffer_t implementation isn't very smart, speedwise, it
needs some love and polish. For example avoid all this memory allocating
and deallocating when printing formatted strings, print to a static buffer
with snprintf and only do allocation tricks if you overrun the limit.
Also, increase the buffer size more aggressively, allocate a buffer right
at the start.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/439>
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-devel
mailing list