Opened 15 years ago
Closed 14 years ago
#439 closed enhancement (fixed)
Improve stringbuffer_t performance
Reported by: | pramsey | Owned by: | pramsey |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 2.0.0 |
Component: | postgis | Version: | master |
Keywords: | Cc: |
Description
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.
Note:
See TracTickets
for help on using tickets.
Done as of r6359