1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-29 10:41:53 +03:00

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.
This commit is contained in:
Robert Haas
2010-11-19 22:13:11 -05:00
parent 0f61d4dd1b
commit 4fc115b2e9
9 changed files with 157 additions and 18 deletions

View File

@ -275,6 +275,7 @@ extern Datum current_schemas(PG_FUNCTION_ARGS);
extern int32 pg_atoi(char *s, int size, int c);
extern void pg_itoa(int16 i, char *a);
extern void pg_ltoa(int32 l, char *a);
extern void pg_lltoa(int64 ll, char *a);
/*
* Per-opclass comparison functions for new btrees. These are