aboutsummaryrefslogtreecommitdiff
path: root/src/wherecode.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2018-09-20 19:02:15 +0000
committerdrh <drh@noemail.net>2018-09-20 19:02:15 +0000
commiteda079cd2c8ac1217574cd372c7bbcf6f651ccab (patch)
tree1426ab64c86073c55d49fd39029c8cd092348dd8 /src/wherecode.c
parent85c6892aa45dc0f476aa9bd772c678215f679853 (diff)
downloadsqlite-eda079cd2c8ac1217574cd372c7bbcf6f651ccab.tar.gz
sqlite-eda079cd2c8ac1217574cd372c7bbcf6f651ccab.zip
Combine the Expr.pTab and Expr.pWin fields into a union named "y". Add a new
EP_WinFunc property that is only true if Expr.y.pWin is a valid pointer. This reduces the size of the Expr object by 8 bytes, reduces the overall amount of code, and shaves over 1 million cycles off of the speed test. FossilOrigin-Name: ad130bb86e74e6ce165fdbdce3a19699510f0e62071c1c7923b5a4538d888c7c
Diffstat (limited to 'src/wherecode.c')
-rw-r--r--src/wherecode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wherecode.c b/src/wherecode.c
index 65cbc4ca2..f337006b9 100644
--- a/src/wherecode.c
+++ b/src/wherecode.c
@@ -1117,7 +1117,7 @@ static int whereIndexExprTransNode(Walker *p, Expr *pExpr){
pExpr->op = TK_COLUMN;
pExpr->iTable = pX->iIdxCur;
pExpr->iColumn = pX->iIdxCol;
- pExpr->pTab = 0;
+ pExpr->y.pTab = 0;
return WRC_Prune;
}else{
return WRC_Continue;