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

Make cellSizePtr() a method on the MemPage object, with alternative

implementations depending on the page type.  This results is a small performance
improvement and size reduction.

FossilOrigin-Name: 02f7e9d7d7b93d0b6bbd6cc0d0359b3b741b9931
This commit is contained in:
drh
2015-06-19 15:07:14 +00:00
parent 4307690b5c
commit 25ada07ab4
4 changed files with 59 additions and 31 deletions

View File

@@ -295,6 +295,7 @@ struct MemPage {
u8 *aDataEnd; /* One byte past the end of usable data */
u8 *aCellIdx; /* The cell index area */
DbPage *pDbPage; /* Pager page handle */
u16 (*xCellSize)(MemPage*,u8*); /* cellSizePtr method */
Pgno pgno; /* Page number for this page */
};