mirror of
https://github.com/postgres/postgres.git
synced 2025-06-11 20:28:21 +03:00
Use appendStringInfoString instead of appendStringInfo where possible.
This shaves a few cycles, and generally seems like good programming practice. David Rowley
This commit is contained in:
@ -335,18 +335,18 @@ cube_out(PG_FUNCTION_ARGS)
|
||||
for (i = 0; i < dim; i++)
|
||||
{
|
||||
if (i > 0)
|
||||
appendStringInfo(&buf, ", ");
|
||||
appendStringInfoString(&buf, ", ");
|
||||
appendStringInfo(&buf, "%.*g", ndig, LL_COORD(cube, i));
|
||||
}
|
||||
appendStringInfoChar(&buf, ')');
|
||||
|
||||
if (!cube_is_point_internal(cube))
|
||||
{
|
||||
appendStringInfo(&buf, ",(");
|
||||
appendStringInfoString(&buf, ",(");
|
||||
for (i = 0; i < dim; i++)
|
||||
{
|
||||
if (i > 0)
|
||||
appendStringInfo(&buf, ", ");
|
||||
appendStringInfoString(&buf, ", ");
|
||||
appendStringInfo(&buf, "%.*g", ndig, UR_COORD(cube, i));
|
||||
}
|
||||
appendStringInfoChar(&buf, ')');
|
||||
|
Reference in New Issue
Block a user