1
0
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:
drh
2016-01-11 22:58:50 +00:00
parent 46414c29ba
commit 00dcecab19
4 changed files with 41 additions and 48 deletions

View File

@@ -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