Ticket #439 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

Improve stringbuffer_t performance

Reported by: pramsey Owned by: pramsey
Priority: medium Milestone: PostGIS 2.0.0
Component: postgis Version: trunk
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.

Change History

Changed 3 years ago by pramsey

  • status changed from new to closed
  • resolution set to fixed

Done as of r6359

Note: See TracTickets for help on using tickets.