Re: Speedup usages of pg_*toa() functions
John Naylor <john.naylor@2ndquadrant.com>
From: John Naylor <john.naylor@2ndquadrant.com>
To: David Rowley <dgrowleyml@gmail.com>
Cc: Andrew Gierth <andrew@tao11.riddles.org.uk>, PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>,
Andres Freund <andres@anarazel.de>
Date: 2020-07-02T03:57:47Z
Lists: pgsql-hackers
On Sat, Jun 13, 2020 at 8:36 AM David Rowley <dgrowleyml@gmail.com> wrote: > I ended up chickening out of doing the larger allocation > unconditionally. Instead, I pushed the original idea of doing the > palloc/memcpy of the length returned by pg_lltoa. That gets us most > of the gains without the change in memory usage behaviour. This was still marked as needing review in commitfest, so I marked it as committed. -- John Naylor https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
-
Have pg_itoa, pg_ltoa and pg_lltoa return the length of the string
- dad75eb4a8d5 14.0 landed
-
Add missing extern keyword for a couple of numutils functions
- 095f2d95c927 13.0 landed
- 9a7fccd9eac8 14.0 landed