diff options
author | drh <> | 2022-12-22 19:12:48 +0000 |
---|---|---|
committer | drh <> | 2022-12-22 19:12:48 +0000 |
commit | cce70d52d0ac5c06a781a4d19e6807bba68a00ce (patch) | |
tree | b9bb358c95dc546cb9bb3ae82f8ff9223f715b8b /src | |
parent | edc2713fdc8cecfcc2821da5469bd609418db174 (diff) | |
download | sqlite-cce70d52d0ac5c06a781a4d19e6807bba68a00ce.tar.gz sqlite-cce70d52d0ac5c06a781a4d19e6807bba68a00ce.zip |
Avoid having to reinitialize Vdbe.pResultRow upon each call to sqlite3_step()
for a small size reduction and performance increase.
FossilOrigin-Name: 6a00d67f5955ab86eea982c27b3a03b680fdf644ec63f49586ade6342a4d64a6
Diffstat (limited to 'src')
-rw-r--r-- | src/vdbe.c | 1 | ||||
-rw-r--r-- | src/vdbeapi.c | 2 | ||||
-rw-r--r-- | src/vdbeaux.c | 1 |
3 files changed, 1 insertions, 3 deletions
diff --git a/src/vdbe.c b/src/vdbe.c index 1ed7216d1..caaf2f429 100644 --- a/src/vdbe.c +++ b/src/vdbe.c @@ -755,7 +755,6 @@ int sqlite3VdbeExec( assert( p->bIsReader || p->readOnly!=0 ); p->iCurrentTime = 0; assert( p->explain==0 ); - p->pResultRow = 0; db->busyHandler.nBusy = 0; if( AtomicLoad(&db->u1.isInterrupted) ) goto abort_due_to_interrupt; sqlite3VdbeIOTraceSql(p); diff --git a/src/vdbeapi.c b/src/vdbeapi.c index 34727c30e..e080449c5 100644 --- a/src/vdbeapi.c +++ b/src/vdbeapi.c @@ -753,7 +753,7 @@ static int sqlite3Step(Vdbe *p){ /* If the statement completed successfully, invoke the profile callback */ checkProfileCallback(db, p); #endif - + p->pResultRow = 0; if( rc==SQLITE_DONE && db->autoCommit ){ assert( p->rc==SQLITE_OK ); p->rc = doWalCallbacks(db); diff --git a/src/vdbeaux.c b/src/vdbeaux.c index bcd67020e..4ce2e9ec9 100644 --- a/src/vdbeaux.c +++ b/src/vdbeaux.c @@ -2316,7 +2316,6 @@ int sqlite3VdbeList( ** sqlite3_column_text16(), causing a translation to UTF-16 encoding. */ releaseMemArray(pMem, 8); - p->pResultRow = 0; if( p->rc==SQLITE_NOMEM ){ /* This happens if a malloc() inside a call to sqlite3_column_text() or |