pgsql: Speed up conversion of signed integers to C strings.
От
Robert Haas
Тема
pgsql: Speed up conversion of signed integers to C strings.
Дата
Msg-id
E1PJdvR-0001kd-Dn@gemulon.postgresql.org
Список
Дерево обсуждения
pgsql: Speed up conversion of signed integers to C strings. Robert Haas <rhaas@postgresql.org>
Re: pgsql: Speed up conversion of signed integers to C strings. Tom Lane <tgl@sss.pgh.pa.us>
Re: pgsql: Speed up conversion of signed integers to C strings. Tom Lane <tgl@sss.pgh.pa.us>
Re: pgsql: Speed up conversion of signed integers to C strings. Robert Haas <robertmhaas@gmail.com>
Re: pgsql: Speed up conversion of signed integers to
C strings. Andrew Dunstan <andrew@dunslane.net>
Re: pgsql: Speed up conversion of signed integers to C strings. Robert Haas <robertmhaas@gmail.com>
Re: pgsql: Speed up conversion of signed
integers to C strings. Bruce Momjian <bruce@momjian.us>
Re: pgsql: Speed up conversion of signed integers to
C strings. Andrew Dunstan <andrew@dunslane.net>
Re: pgsql: Speed up conversion of signed
integers to C strings. Bruce Momjian <bruce@momjian.us>
Speed up conversion of signed integers to C strings. A hand-coded implementation turns out to be much faster than calling printf(). In passing, add a few more regresion tests. Andres Freund, with assorted, mostly cosmetic changes. Branch ------ master Details ------- http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=4fc115b2e981f8c63165ca86a23215380a3fda66 Modified Files -------------- src/backend/utils/adt/int8.c | 8 +-- src/backend/utils/adt/numutils.c | 115 ++++++++++++++++++++++++++++++++---- src/include/utils/builtins.h | 1 + src/test/regress/expected/int2.out | 13 ++++ src/test/regress/expected/int4.out | 13 ++++ src/test/regress/expected/int8.out | 13 ++++ src/test/regress/sql/int2.sql | 4 + src/test/regress/sql/int4.sql | 4 + src/test/regress/sql/int8.sql | 4 + 9 files changed, 157 insertions(+), 18 deletions(-)
В списке pgsql-committers по дате отправления
От: hinoue@pgfoundry.org (User Hinoue)
Дата:
От: Tom Lane
Дата: