mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
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
This commit is contained in:
@ -26,7 +26,6 @@
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/int8.h"
|
||||
|
||||
#define MAXINT8LEN 25
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
Reference in New Issue
Block a user