mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-18 10:21:03 +03:00
Performance optimization in the sqlite3VdbeChangeP4() routine of the
code generator. FossilOrigin-Name: 28bd8d5fc541464b69886b7e886939035b42a869
This commit is contained in:
@@ -4318,8 +4318,7 @@ WhereInfo *sqlite3WhereBegin(
|
||||
Bitmask b = pTabItem->colUsed;
|
||||
int n = 0;
|
||||
for(; b; b=b>>1, n++){}
|
||||
sqlite3VdbeChangeP4(v, sqlite3VdbeCurrentAddr(v)-1,
|
||||
SQLITE_INT_TO_PTR(n), P4_INT32);
|
||||
sqlite3VdbeChangeP4(v, -1, SQLITE_INT_TO_PTR(n), P4_INT32);
|
||||
assert( n<=pTab->nCol );
|
||||
}
|
||||
#ifdef SQLITE_ENABLE_CURSOR_HINTS
|
||||
|
||||
Reference in New Issue
Block a user