mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-05 15:55:57 +03:00
Additional minor speed improvements. (CVS 1496)
FossilOrigin-Name: a90264c0a4c73097fe0ae8933dcebb15b8eaa2bb
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
** May you share freely, never taking more than you give.
|
||||
**
|
||||
*************************************************************************
|
||||
** $Id: btree.c,v 1.149 2004/05/29 21:46:49 drh Exp $
|
||||
** $Id: btree.c,v 1.150 2004/05/30 02:14:18 drh Exp $
|
||||
**
|
||||
** This file implements a external (disk-based) database using BTrees.
|
||||
** For a detailed discussion of BTrees, refer to
|
||||
@@ -1505,14 +1505,13 @@ static void releaseTempCursor(BtCursor *pCur){
|
||||
** Using this cache reduces the number of calls to parseCell().
|
||||
*/
|
||||
static void getCellInfo(BtCursor *pCur){
|
||||
MemPage *pPage = pCur->pPage;
|
||||
if( !pCur->infoValid ){
|
||||
parseCell(pPage, pCur->idx, &pCur->info);
|
||||
parseCell(pCur->pPage, pCur->idx, &pCur->info);
|
||||
pCur->infoValid = 1;
|
||||
}else{
|
||||
#ifndef NDEBUG
|
||||
CellInfo info;
|
||||
parseCell(pPage, pCur->idx, &info);
|
||||
parseCell(pCur->pPage, pCur->idx, &info);
|
||||
assert( memcmp(&info, &pCur->info, sizeof(info))==0 );
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user