diff options
author | drh <> | 2022-01-02 21:53:54 +0000 |
---|---|---|
committer | drh <> | 2022-01-02 21:53:54 +0000 |
commit | 80d99e19b69814b7a9bebcc792fc9b7e959bbd0e (patch) | |
tree | e840b1f3aa1e209ec1a78a75540970e2cade8bfb /src | |
parent | 5d1bf4f560300d236ed1084f518e53d4e0131f48 (diff) | |
download | sqlite-80d99e19b69814b7a9bebcc792fc9b7e959bbd0e.tar.gz sqlite-80d99e19b69814b7a9bebcc792fc9b7e959bbd0e.zip |
Remove unnecessary assignment operations in the btree search algorithm,
for a small size reduction and performance increase.
FossilOrigin-Name: 01bd266eb682feed901a0995c2232b62d8444d19dbb227095dfbfe8edeaa5d88
Diffstat (limited to 'src')
-rw-r--r-- | src/btree.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/btree.c b/src/btree.c index b99045c41..0bac90690 100644 --- a/src/btree.c +++ b/src/btree.c @@ -5575,7 +5575,6 @@ int sqlite3BtreeTableMoveto( upr = pPage->nCell-1; assert( biasRight==0 || biasRight==1 ); idx = upr>>(1-biasRight); /* idx = biasRight ? upr : (lwr+upr)/2; */ - pCur->ix = (u16)idx; for(;;){ i64 nCellKey; pCell = findCellPastPtr(pPage, idx); @@ -5717,7 +5716,6 @@ int sqlite3BtreeIndexMoveto( lwr = 0; upr = pPage->nCell-1; idx = upr>>1; /* idx = (lwr+upr)/2; */ - pCur->ix = (u16)idx; for(;;){ int nCell; /* Size of the pCell cell in bytes */ pCell = findCellPastPtr(pPage, idx); |