Optimizations for integer to decimal output.

Andrew Gierth <rhodiumtoad@postgresql.org>

Commit: 1fd687a035558238c0e3cab09fc22dc61a088869
Author: Andrew Gierth <rhodiumtoad@postgresql.org>
Date: 2020-02-01T21:57:14Z
Releases: 13.0
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

Files

Discussion