From: Andrew Gierth <rhodiumtoad@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Optimizations for integer to decimal output.
Date: Sat, 01 Feb 2020 22:04:36 +0000
Message-ID: <E1iy0sW-0002EU-O6@gemulon.postgresql.org> (raw)
Optimizations for integer to decimal output.
Using a lookup table of digit pairs reduces the number of divisions
needed, and calculating the length upfront saves some work; these
ideas are taken from the code previously committed for floats.
David Fetter, reviewed by Kyotaro Horiguchi, Tels, and me.
Discussion: https://postgr.es/m/20190924052620.GP31596%40fetter.org
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/1fd687a035558238c0e3cab09fc22dc61a088869
Modified Files
--------------
src/backend/access/common/printsimple.c | 2 +-
src/backend/utils/adt/datetime.c | 98 ++++----
src/backend/utils/adt/int8.c | 1 -
src/backend/utils/adt/numutils.c | 405 ++++++++++++++++++--------------
src/include/utils/builtins.h | 8 +-
5 files changed, 287 insertions(+), 227 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: rhodiumtoad@postgresql.org
Subject: Re: pgsql: Optimizations for integer to decimal output.
In-Reply-To: <E1iy0sW-0002EU-O6@gemulon.postgresql.org>
References: <E1iy0sW-0002EU-O6@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox