mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-03 16:53:36 +03:00
Small performance optimization in sqlite3VdbeRecordCompareWithSkip() for
the common case where the comparison is equal. FossilOrigin-Name: 1e616e256a4fb1b64271706fdfa77dc5790eba0a2f0e619544e169bc61d7c805
This commit is contained in:
@@ -4284,10 +4284,11 @@ int sqlite3VdbeRecordCompareWithSkip(
|
||||
}
|
||||
|
||||
i++;
|
||||
if( i==pPKey2->nField ) break;
|
||||
pRhs++;
|
||||
d1 += sqlite3VdbeSerialTypeLen(serial_type);
|
||||
idx1 += sqlite3VarintLen(serial_type);
|
||||
}while( idx1<(unsigned)szHdr1 && i<pPKey2->nField && d1<=(unsigned)nKey1 );
|
||||
}while( idx1<(unsigned)szHdr1 && d1<=(unsigned)nKey1 );
|
||||
|
||||
/* No memory allocation is ever used on mem1. Prove this using
|
||||
** the following assert(). If the assert() fails, it indicates a
|
||||
|
||||
Reference in New Issue
Block a user