1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-02 05:54:29 +03:00

Optimization to vdbeRecordCompareInt() makes it slightly smaller and faster.

FossilOrigin-Name: 5a2a7712cb8e0b686942dfab4e9e67b5ea7b2be3
This commit is contained in:
drh
2016-09-15 00:04:46 +00:00
parent 481fd50cb4
commit 5f6eb1a0dc
3 changed files with 9 additions and 8 deletions

View File

@@ -4143,7 +4143,7 @@ static int vdbeRecordCompareInt(
int res;
u32 y;
u64 x;
i64 v = pPKey2->aMem[0].u.i;
i64 v;
i64 lhs;
vdbeAssertFieldCountWithinLimits(nKey1, pKey1, pPKey2->pKeyInfo);
@@ -4202,6 +4202,7 @@ static int vdbeRecordCompareInt(
return sqlite3VdbeRecordCompare(nKey1, pKey1, pPKey2);
}
v = pPKey2->aMem[0].u.i;
if( v>lhs ){
res = pPKey2->r1;
}else if( v<lhs ){