1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Change the balance_nonroot() routine to reduce the amount of memcpy work that takes place. This is a work in progress.

FossilOrigin-Name: 29304499ea4b72dbb6701e10cc19b5d41f7e5ac9
This commit is contained in:
dan
2014-10-09 19:35:37 +00:00
parent 588400b861
commit 33ea486603
5 changed files with 292 additions and 236 deletions

View File

@@ -6835,6 +6835,14 @@ int sqlite3PagerMovepage(Pager *pPager, DbPage *pPg, Pgno pgno, int isCommit){
return SQLITE_OK;
}
void sqlite3PagerRekey(DbPage *pPage, Pgno iNew){
PgHdr *pPg = (PgHdr*)pPage;
assert( pPg->flags & PGHDR_DIRTY );
assert( !subjRequiresPage(pPg) );
sqlite3PcacheMove(pPg, iNew);
}
#endif
/*
@@ -7235,4 +7243,5 @@ int sqlite3PagerWalFramesize(Pager *pPager){
}
#endif
#endif /* SQLITE_OMIT_DISKIO */