aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authordrh <>2021-03-23 14:27:35 +0000
committerdrh <>2021-03-23 14:27:35 +0000
commit50e43c5094c6bc4940d60efe637f58e4a2ad5866 (patch)
tree008702c0a6890f34fe7cacf1324ded788fcc6a08 /src/sqliteInt.h
parenta7fc252b0a19e9f147b36f6b5cd8825522c2c239 (diff)
downloadsqlite-50e43c5094c6bc4940d60efe637f58e4a2ad5866.tar.gz
sqlite-50e43c5094c6bc4940d60efe637f58e4a2ad5866.zip
Add the ExprList.nAlloc column and use it to make the sqlite3ExprListAppend()
routine much faster. FossilOrigin-Name: 1d3c4662c2f522ac695d97441324069f3fc65f3fa0b87194c7094dfb8cd549f2
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r--src/sqliteInt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index 6bd53d20f..69740248f 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -2878,6 +2878,7 @@ struct Expr {
*/
struct ExprList {
int nExpr; /* Number of expressions on the list */
+ int nAlloc; /* Number of a[] slots allocated */
struct ExprList_item { /* For each expression in the list */
Expr *pExpr; /* The parse tree for this expression */
char *zEName; /* Token associated with this expression */