aboutsummaryrefslogtreecommitdiff
path: root/src/vdbe.c
diff options
context:
space:
mode:
authordrh <>2022-04-02 22:47:47 +0000
committerdrh <>2022-04-02 22:47:47 +0000
commitc2808f39d1b9f13d362a465ee3687022b51f6b40 (patch)
tree173fe5b4d2f21f1cc04d1a129f47fa2f926c0339 /src/vdbe.c
parent1f416db2926d5c41e04db2537f6343959b7bb09e (diff)
downloadsqlite-c2808f39d1b9f13d362a465ee3687022b51f6b40.tar.gz
sqlite-c2808f39d1b9f13d362a465ee3687022b51f6b40.zip
Expand the getVarint32() macro in a few places, as the C-compiler seems to
be able to optimize better when that macro is expanded manually. FossilOrigin-Name: cd4fe34b98bf5ce26f3596c717edb73932f3b46ad6e9b4934d06b7b3c176a0d6
Diffstat (limited to 'src/vdbe.c')
-rw-r--r--src/vdbe.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/vdbe.c b/src/vdbe.c
index c66680220..bb23757d6 100644
--- a/src/vdbe.c
+++ b/src/vdbe.c
@@ -2739,7 +2739,11 @@ op_column_restart:
assert( pC->szRow<=65536 ); /* Maximum page size is 64KiB */
}
pC->cacheStatus = p->cacheCtr;
- pC->iHdrOffset = getVarint32(pC->aRow, aOffset[0]);
+ if( (aOffset[0] = pC->aRow[0])<0x80 ){
+ pC->iHdrOffset = 1;
+ }else{
+ pC->iHdrOffset = sqlite3GetVarint32(pC->aRow, aOffset);
+ }
pC->nHdrParsed = 0;
if( pC->szRow<aOffset[0] ){ /*OPTIMIZATION-IF-FALSE*/