/ Check-in [a17190a2]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Performance enhancement in btreeParseCellPtr().
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: a17190a2296e8cd5e59524ff5914fc5ea3560697
User & Date: drh 2013-08-21 15:52:22
Context
2013-08-21
17:35
If a virtual table xSync() returns an error message, copy it into a buffer allocated by sqlite3DbMalloc() before transfering it to Vdbe.zErrMsg. check-in: 854ba304 user: dan tags: trunk
15:52
Performance enhancement in btreeParseCellPtr(). check-in: a17190a2 user: drh tags: trunk
15:45
Fix an FTS4 problem introduced by [361084e1eb]. check-in: 5f35c8cb user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/btree.c.

   936    936   
   937    937     pInfo->pCell = pCell;
   938    938     assert( pPage->leaf==0 || pPage->leaf==1 );
   939    939     n = pPage->childPtrSize;
   940    940     assert( n==4-4*pPage->leaf );
   941    941     if( pPage->intKey ){
   942    942       if( pPage->hasData ){
   943         -      n += getVarint32(&pCell[n], nPayload);
          943  +      assert( n==0 );
          944  +      n = getVarint32(pCell, nPayload);
   944    945       }else{
   945    946         nPayload = 0;
   946    947       }
   947    948       n += getVarint(&pCell[n], (u64*)&pInfo->nKey);
   948    949       pInfo->nData = nPayload;
   949    950     }else{
   950    951       pInfo->nData = 0;