Renumber internal constants in the printf() implemention for a small
performance improvement. FossilOrigin-Name: 69d11447f4b1a8c536c3b6573d2a3419da870412
This commit is contained in:
parent
4e80d5fcf1
commit
ad5a9d715f
12
manifest
12
manifest
@ -1,5 +1,5 @@
|
|||||||
C Disable\sthe\ssession\sextension\sAPI\sif\sSQLITE_ENABLE_SESSION\sis\snot\sdefined.
|
C Renumber\sinternal\sconstants\sin\sthe\sprintf()\simplemention\sfor\sa\ssmall\nperformance\simprovement.
|
||||||
D 2016-05-04T21:06:21.506
|
D 2016-05-05T11:53:12.439
|
||||||
F Makefile.in 9eda6e1c90d05c199c3ec8a7069b0682ad307657
|
F Makefile.in 9eda6e1c90d05c199c3ec8a7069b0682ad307657
|
||||||
F Makefile.linux-gcc 7bc79876b875010e8c8f9502eb935ca92aa3c434
|
F Makefile.linux-gcc 7bc79876b875010e8c8f9502eb935ca92aa3c434
|
||||||
F Makefile.msc db82b35aef27f412fef14d8534afc022138bcdfd
|
F Makefile.msc db82b35aef27f412fef14d8534afc022138bcdfd
|
||||||
@ -373,7 +373,7 @@ F src/pcache1.c 7f51d2b541aab57596adf62db2c4bb025d34f04d
|
|||||||
F src/pragma.c faf42922bb7ab2f6672cb550356c1967abae3c84
|
F src/pragma.c faf42922bb7ab2f6672cb550356c1967abae3c84
|
||||||
F src/pragma.h 64c78a648751b9f4f297276c4eb7507b14b4628c
|
F src/pragma.h 64c78a648751b9f4f297276c4eb7507b14b4628c
|
||||||
F src/prepare.c 22df6171aec1d86904ed2ad30c2348a5748aa04e
|
F src/prepare.c 22df6171aec1d86904ed2ad30c2348a5748aa04e
|
||||||
F src/printf.c 63e6fb12bbe702dd664dc3703776c090383a5a26
|
F src/printf.c a5f0ca08ddede803c241266abb46356ec748ded1
|
||||||
F src/random.c ba2679f80ec82c4190062d756f22d0c358180696
|
F src/random.c ba2679f80ec82c4190062d756f22d0c358180696
|
||||||
F src/resolve.c cca3aa77b95706df5d635a2141a4d1de60ae6598
|
F src/resolve.c cca3aa77b95706df5d635a2141a4d1de60ae6598
|
||||||
F src/rowset.c 49eb91c588a2bab36647368e031dc5b66928149d
|
F src/rowset.c 49eb91c588a2bab36647368e031dc5b66928149d
|
||||||
@ -1487,7 +1487,7 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93
|
|||||||
F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
|
F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
|
||||||
F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
|
F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
|
||||||
F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
|
F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
|
||||||
P 6c43ba1c8753a4029e127078652f265c408a01c0
|
P 71af9ac165ac02272f4886f69bd9ab4770fd7bb6
|
||||||
R a7d4cc11d472462953b7d84c093e9aa1
|
R 89655379113728f544ce9a18ad294b0b
|
||||||
U drh
|
U drh
|
||||||
Z c3eb846652f8b95f225fc6721b0d9cb4
|
Z f65addcdc03169dedb02067b28293d6c
|
||||||
|
@ -1 +1 @@
|
|||||||
71af9ac165ac02272f4886f69bd9ab4770fd7bb6
|
69d11447f4b1a8c536c3b6573d2a3419da870412
|
36
src/printf.c
36
src/printf.c
@ -15,26 +15,26 @@
|
|||||||
** Conversion types fall into various categories as defined by the
|
** Conversion types fall into various categories as defined by the
|
||||||
** following enumeration.
|
** following enumeration.
|
||||||
*/
|
*/
|
||||||
#define etRADIX 1 /* Integer types. %d, %x, %o, and so forth */
|
#define etRADIX 0 /* Integer types. %d, %x, %o, and so forth */
|
||||||
#define etFLOAT 2 /* Floating point. %f */
|
#define etFLOAT 1 /* Floating point. %f */
|
||||||
#define etEXP 3 /* Exponentional notation. %e and %E */
|
#define etEXP 2 /* Exponentional notation. %e and %E */
|
||||||
#define etGENERIC 4 /* Floating or exponential, depending on exponent. %g */
|
#define etGENERIC 3 /* Floating or exponential, depending on exponent. %g */
|
||||||
#define etSIZE 5 /* Return number of characters processed so far. %n */
|
#define etSIZE 4 /* Return number of characters processed so far. %n */
|
||||||
#define etSTRING 6 /* Strings. %s */
|
#define etSTRING 5 /* Strings. %s */
|
||||||
#define etDYNSTRING 7 /* Dynamically allocated strings. %z */
|
#define etDYNSTRING 6 /* Dynamically allocated strings. %z */
|
||||||
#define etPERCENT 8 /* Percent symbol. %% */
|
#define etPERCENT 7 /* Percent symbol. %% */
|
||||||
#define etCHARX 9 /* Characters. %c */
|
#define etCHARX 8 /* Characters. %c */
|
||||||
/* The rest are extensions, not normally found in printf() */
|
/* The rest are extensions, not normally found in printf() */
|
||||||
#define etSQLESCAPE 10 /* Strings with '\'' doubled. %q */
|
#define etSQLESCAPE 9 /* Strings with '\'' doubled. %q */
|
||||||
#define etSQLESCAPE2 11 /* Strings with '\'' doubled and enclosed in '',
|
#define etSQLESCAPE2 10 /* Strings with '\'' doubled and enclosed in '',
|
||||||
NULL pointers replaced by SQL NULL. %Q */
|
NULL pointers replaced by SQL NULL. %Q */
|
||||||
#define etTOKEN 12 /* a pointer to a Token structure */
|
#define etTOKEN 11 /* a pointer to a Token structure */
|
||||||
#define etSRCLIST 13 /* a pointer to a SrcList */
|
#define etSRCLIST 12 /* a pointer to a SrcList */
|
||||||
#define etPOINTER 14 /* The %p conversion */
|
#define etPOINTER 13 /* The %p conversion */
|
||||||
#define etSQLESCAPE3 15 /* %w -> Strings with '\"' doubled */
|
#define etSQLESCAPE3 14 /* %w -> Strings with '\"' doubled */
|
||||||
#define etORDINAL 16 /* %r -> 1st, 2nd, 3rd, 4th, etc. English only */
|
#define etORDINAL 15 /* %r -> 1st, 2nd, 3rd, 4th, etc. English only */
|
||||||
|
|
||||||
#define etINVALID 0 /* Any unrecognized conversion type */
|
#define etINVALID 16 /* Any unrecognized conversion type */
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -189,7 +189,7 @@ void sqlite3VXPrintf(
|
|||||||
etByte flag_long; /* True if "l" flag is present */
|
etByte flag_long; /* True if "l" flag is present */
|
||||||
etByte flag_longlong; /* True if the "ll" flag is present */
|
etByte flag_longlong; /* True if the "ll" flag is present */
|
||||||
etByte done; /* Loop termination flag */
|
etByte done; /* Loop termination flag */
|
||||||
etByte xtype = 0; /* Conversion paradigm */
|
etByte xtype = etINVALID; /* Conversion paradigm */
|
||||||
u8 bArgList; /* True for SQLITE_PRINTF_SQLFUNC */
|
u8 bArgList; /* True for SQLITE_PRINTF_SQLFUNC */
|
||||||
u8 useIntern; /* Ok to use internal conversions (ex: %T) */
|
u8 useIntern; /* Ok to use internal conversions (ex: %T) */
|
||||||
char prefix; /* Prefix character. "+" or "-" or " " or '\0'. */
|
char prefix; /* Prefix character. "+" or "-" or " " or '\0'. */
|
||||||
|
Loading…
Reference in New Issue
Block a user