/ Check-in [52b99bcb]
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:In speedtest1.c, make the "--lookaside 0 0" option completely disable lookaside.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | speedtest1
Files: files | file ages | folders
SHA1: 52b99bcbf18f34196ec29f829c6af539e0d05524
User & Date: drh 2016-12-31 18:37:50
Context
2017-01-02
12:20
Add the --all option to the wordcount test program. Fix the speedtest1 test program so that it builds on MSVC and so that the --lookaside 0 0 option works. check-in: cb338f36 user: drh tags: trunk
2016-12-31
18:37
In speedtest1.c, make the "--lookaside 0 0" option completely disable lookaside. Closed-Leaf check-in: 52b99bcb user: drh tags: speedtest1
14:33
Minor #include change to speedtest1.c so that it will compile under MSVC. check-in: 8c28fde0 user: drh tags: speedtest1
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/speedtest1.c.

  1374   1374     int doAutovac = 0;            /* True for --autovacuum */
  1375   1375     int cacheSize = 0;            /* Desired cache size.  0 means default */
  1376   1376     int doExclusive = 0;          /* True for --exclusive */
  1377   1377     int nHeap = 0, mnHeap = 0;    /* Heap size from --heap */
  1378   1378     int doIncrvac = 0;            /* True for --incrvacuum */
  1379   1379     const char *zJMode = 0;       /* Journal mode */
  1380   1380     const char *zKey = 0;         /* Encryption key */
  1381         -  int nLook = 0, szLook = 0;    /* --lookaside configuration */
         1381  +  int nLook = -1, szLook = 0;   /* --lookaside configuration */
  1382   1382     int noSync = 0;               /* True for --nosync */
  1383   1383     int pageSize = 0;             /* Desired page size.  0 means default */
  1384   1384     int nPCache = 0, szPCache = 0;/* --pcache configuration */
  1385   1385     int doPCache = 0;             /* True if --pcache is seen */
  1386   1386     int nScratch = 0, szScratch=0;/* --scratch configuration */
  1387   1387     int showStats = 0;            /* True for --stats */
  1388   1388     int nThread = 0;              /* --threads value */
................................................................................
  1558   1558     if( nScratch>0 && szScratch>0 ){
  1559   1559       pScratch = malloc( nScratch*(sqlite3_int64)szScratch );
  1560   1560       if( pScratch==0 ) fatal_error("cannot allocate %lld-byte scratch\n",
  1561   1561                                    nScratch*(sqlite3_int64)szScratch);
  1562   1562       rc = sqlite3_config(SQLITE_CONFIG_SCRATCH, pScratch, szScratch, nScratch);
  1563   1563       if( rc ) fatal_error("scratch configuration failed: %d\n", rc);
  1564   1564     }
  1565         -  if( nLook>0 ){
         1565  +  if( nLook>=0 ){
  1566   1566       sqlite3_config(SQLITE_CONFIG_LOOKASIDE, 0, 0);
  1567   1567     }
  1568   1568   #endif
  1569   1569    
  1570   1570     /* Open the database and the input file */
  1571   1571     if( sqlite3_open(zDbName, &g.db) ){
  1572   1572       fatal_error("Cannot open database file: %s\n", zDbName);