pgsql: Speed up conversion of signed integers to C strings. - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: Speed up conversion of signed integers to C strings.
Date
Msg-id E1PJdvR-0001kd-Dn@gemulon.postgresql.org
Whole thread Raw
Responses Re: pgsql: Speed up conversion of signed integers to C strings.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-committers
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 by date:

Previous
From: hinoue@pgfoundry.org (User Hinoue)
Date:
Subject: psqlodbc - psqlodbc: Initialize flags member in QResultClass before
Next
From: Tom Lane
Date:
Subject: pgsql: Fix leakage of cost_limit when multiple autovacuum workers are a