1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

Refactoring the OP_Column opcode for improved performance and

maintainability.

FossilOrigin-Name: 7c914e3997d2b28164a2fa7eb4398262b6ddb4b2
This commit is contained in:
drh
2013-11-20 17:25:55 +00:00
parent 79353dbd5f
commit 399af1d2c2
5 changed files with 135 additions and 190 deletions

View File

@@ -93,10 +93,14 @@ struct VdbeCursor {
** be NULL.
*/
u32 cacheStatus; /* Cache is valid if this matches Vdbe.cacheCtr */
int payloadSize; /* Total number of bytes in the record */
u32 payloadSize; /* Total number of bytes in the record */
u16 nHdrParsed; /* Number of header fields parsed so far */
u16 nFieldPresent; /* Number of fields in the record */
u32 szRow; /* Byte available in aRow */
u32 iHdrOffset; /* Offset to next unparsed byte of the header */
u32 *aType; /* Type values for all entries in the record */
u32 *aOffset; /* Cached offsets to the start of each columns data */
u8 *aRow; /* Data for the current row, if all on one page */
const u8 *aRow; /* Data for the current row, if all on one page */
};
typedef struct VdbeCursor VdbeCursor;