From 1fd687a035558238c0e3cab09fc22dc61a088869 Mon Sep 17 00:00:00 2001 From: Andrew Gierth Date: Sat, 1 Feb 2020 21:57:14 +0000 Subject: 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 --- src/backend/utils/adt/int8.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/backend/utils/adt/int8.c') diff --git a/src/backend/utils/adt/int8.c b/src/backend/utils/adt/int8.c index 494768c1901..55e0eb05dac 100644 --- a/src/backend/utils/adt/int8.c +++ b/src/backend/utils/adt/int8.c @@ -26,7 +26,6 @@ #include "utils/builtins.h" #include "utils/int8.h" -#define MAXINT8LEN 25 typedef struct { -- cgit v1.2.3