summaryrefslogtreecommitdiff
path: root/doc/src/sgml/func/func-xml.sgml
diff options
context:
space:
mode:
authorDavid Rowley <drowley@postgresql.org>2025-11-06 14:59:48 +1300
committerDavid Rowley <drowley@postgresql.org>2025-11-06 14:59:48 +1300
commit6d0eba66275b125bf634bbdffda90c70856e3f93 (patch)
treee8457e698dcb49a6f9591e79373d8dfddd617f9e /doc/src/sgml/func/func-xml.sgml
parentcf638b46aff2ccb8d4811e3b5d8a2c2410638190 (diff)
Use stack allocated StringInfoDatas, where possible
Various places that were using StringInfo but didn't need that StringInfo to exist beyond the scope of the function were using makeStringInfo(), which allocates both a StringInfoData and the buffer it uses as two separate allocations. It's more efficient for these cases to use a StringInfoData on the stack and initialize it with initStringInfo(), which only allocates the string buffer. This also simplifies the cleanup, in a few cases. Author: Mats Kindahl <mats.kindahl@gmail.com> Reviewed-by: David Rowley <dgrowleyml@gmail.com> Reviewed-by: Chao Li <li.evan.chao@gmail.com> Discussion: https://postgr.es/m/4379aac8-26f1-42f2-a356-ff0e886228d3@gmail.com
Diffstat (limited to 'doc/src/sgml/func/func-xml.sgml')
0 files changed, 0 insertions, 0 deletions