Optimizations to two VDBE accessory routines for a 0.2% performance increase.
FossilOrigin-Name: 66d033b9c9a8c16b9a342be0b325bd85b8487c03
This commit is contained in:
+5
-2
@@ -1241,12 +1241,11 @@ void sqlite3VdbeEnter(Vdbe *p){
|
||||
/*
|
||||
** Unlock all of the btrees previously locked by a call to sqlite3VdbeEnter().
|
||||
*/
|
||||
void sqlite3VdbeLeave(Vdbe *p){
|
||||
static SQLITE_NOINLINE void vdbeLeave(Vdbe *p){
|
||||
int i;
|
||||
sqlite3 *db;
|
||||
Db *aDb;
|
||||
int nDb;
|
||||
if( DbMaskAllZero(p->lockMask) ) return; /* The common case */
|
||||
db = p->db;
|
||||
aDb = db->aDb;
|
||||
nDb = db->nDb;
|
||||
@@ -1256,6 +1255,10 @@ void sqlite3VdbeLeave(Vdbe *p){
|
||||
}
|
||||
}
|
||||
}
|
||||
void sqlite3VdbeLeave(Vdbe *p){
|
||||
if( DbMaskAllZero(p->lockMask) ) return; /* The common case */
|
||||
vdbeLeave(p);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(VDBE_PROFILE) || defined(SQLITE_DEBUG)
|
||||
|
||||
Reference in New Issue
Block a user