/ Check-in [cc8f10bc]
Login

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

Overview
Comment:Minor simplifications to the "zeroPage()" routine in btree.c.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: cc8f10bcb206c9def69b06f26decf025b8d9119d
User & Date: drh 2014-02-12 23:52:16
Context
2014-02-13
13:42
Update the tclconfig files to the latest from http://core.tcl.tk/tclconfig. check-in: b81ba7a4 user: drh tags: trunk
2014-02-12
23:52
Minor simplifications to the "zeroPage()" routine in btree.c. check-in: cc8f10bc user: drh tags: trunk
21:31
Remove the "rowid cache" that sought to remember the largest rowid for a table and thereby speed up OP_NewRowid. That cache was ineffective. Removing it results in a performance increase of 0.4%, less memory usage, and a slightly smaller library size. check-in: 56bc5ce8 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/btree.c.

  1538   1538     assert( sqlite3PagerGetData(pPage->pDbPage) == data );
  1539   1539     assert( sqlite3PagerIswriteable(pPage->pDbPage) );
  1540   1540     assert( sqlite3_mutex_held(pBt->mutex) );
  1541   1541     if( pBt->btsFlags & BTS_SECURE_DELETE ){
  1542   1542       memset(&data[hdr], 0, pBt->usableSize - hdr);
  1543   1543     }
  1544   1544     data[hdr] = (char)flags;
  1545         -  first = hdr + 8 + 4*((flags&PTF_LEAF)==0 ?1:0);
         1545  +  first = hdr + ((flags&PTF_LEAF)==0 ? 12 : 8);
  1546   1546     memset(&data[hdr+1], 0, 4);
  1547   1547     data[hdr+7] = 0;
  1548   1548     put2byte(&data[hdr+5], pBt->usableSize);
  1549   1549     pPage->nFree = (u16)(pBt->usableSize - first);
  1550   1550     decodeFlags(pPage, flags);
  1551         -  pPage->hdrOffset = hdr;
  1552   1551     pPage->cellOffset = first;
  1553   1552     pPage->aDataEnd = &data[pBt->usableSize];
  1554   1553     pPage->aCellIdx = &data[first];
  1555   1554     pPage->nOverflow = 0;
  1556   1555     assert( pBt->pageSize>=512 && pBt->pageSize<=65536 );
  1557   1556     pPage->maskPage = (u16)(pBt->pageSize - 1);
  1558   1557     pPage->nCell = 0;