Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Small tweak to the btree balancer for improved tree balance. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
8817dedb75430e6c78ff527f7ded4abb |
User & Date: | drh 2016-07-23 19:18:55.177 |
Context
2016-07-23
| ||
19:34 | Add the json_quote() function to the JSON1 extension. (check-in: 269892abf6 user: drh tags: trunk) | |
19:18 | Small tweak to the btree balancer for improved tree balance. (check-in: 8817dedb75 user: drh tags: trunk) | |
14:50 | Fix recently added tests so that they work in all configurations. (check-in: d0bcaf0cd9 user: drh tags: trunk) | |
2016-07-14
| ||
19:48 | Minor tweak the the b-tree balancer. (Closed-Leaf check-in: d2a0af7a37 user: drh tags: btree-tuning) | |
Changes
Changes to src/btree.c.
︙ | ︙ | |||
7336 7337 7338 7339 7340 7341 7342 | d = r + 1 - leafData; (void)cachedCellSize(&b, d); do{ assert( d<nMaxCells ); assert( r<nMaxCells ); (void)cachedCellSize(&b, r); if( szRight!=0 | | | 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 | d = r + 1 - leafData; (void)cachedCellSize(&b, d); do{ assert( d<nMaxCells ); assert( r<nMaxCells ); (void)cachedCellSize(&b, r); if( szRight!=0 && (bBulk || szRight+b.szCell[d]+2 > szLeft-(b.szCell[r]+(i==k-1?0:2)))){ break; } szRight += b.szCell[d] + 2; szLeft -= b.szCell[r] + 2; cntNew[i-1] = r; r--; d--; |
︙ | ︙ |