On Tue, 2006-02-28 at 14:21 -0500, Neil Conway wrote:
> Attached is a patch that replaces a bunch of places where StringInfos
> are unnecessarily allocated on the heap rather than the stack.
Applied to HEAD.
-Neil
---(end of broadcast)---
TIP 6:
Attached is a patch that replaces a bunch of places where StringInfos
are unnecessarily allocated on the heap rather than the stack. That is,
this is sub-optimal:
{
StringInfo str;
str = makeStringInfo();
/* use str */
pfree(str->data);
pfree(str);
}
If the StringInfo doesn'