/ Check-in [91eb6b62]
Login

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

Overview
Comment:Remove a C99-style comment. Fixes to the kvtest-speed.sh script.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | micro-optimizations
Files: files | file ages | folders
SHA1: 91eb6b628e278d20eccc647293e5b30765163e12
User & Date: drh 2017-01-31 16:49:01
Context
2017-01-31
19:02
Simplifications to blobSeekToRow(). Closed-Leaf check-in: 495ea824 user: drh tags: micro-optimizations
16:49
Remove a C99-style comment. Fixes to the kvtest-speed.sh script. check-in: 91eb6b62 user: drh tags: micro-optimizations
16:43
Remove another unnecessary local variable initialization from sqlite3VdbeExec() check-in: 2361b03b user: drh tags: micro-optimizations
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/vdbe.c.

   593    593     if( p->rc==SQLITE_NOMEM ){
   594    594       /* This happens if a malloc() inside a call to sqlite3_column_text() or
   595    595       ** sqlite3_column_text16() failed.  */
   596    596       goto no_mem;
   597    597     }
   598    598     assert( p->rc==SQLITE_OK || (p->rc&0xff)==SQLITE_BUSY );
   599    599     assert( p->bIsReader || p->readOnly!=0 );
   600         -//  p->rc = SQLITE_OK;
   601    600     p->iCurrentTime = 0;
   602    601     assert( p->explain==0 );
   603    602     p->pResultSet = 0;
   604    603     db->busyHandler.nBusy = 0;
   605    604     if( db->u1.isInterrupted ) goto abort_due_to_interrupt;
   606    605     sqlite3VdbeIOTraceSql(p);
   607    606   #ifndef SQLITE_OMIT_PROGRESS_CALLBACK

Changes to tool/kvtest-speed.sh.

    17     17   OPTS="-DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DIRECT_OVERFLOW_READ -DUSE_PREAD"
    18     18   KVARGS="--count 100K --stats"
    19     19   gcc -g -Os -I. $OPTS $* kvtest.c sqlite3.c -o kvtest
    20     20   
    21     21   # First run using SQL
    22     22   rm cachegrind.out.[1-9][0-9]*
    23     23   valgrind --tool=cachegrind ./kvtest run kvtest.db $KVARGS 2>&1 | tee summary-kvtest-$NAME.txt
    24         -mv cachegrind.out.[1-9][0-9]* cachegrind.out.$NAME
    25         -cg_anno.tcl cachegrind.out.$NAME >cout-kvtest-sql-$NAME.txt
           24  +mv cachegrind.out.[1-9][0-9]* cachegrind.out.sql-$NAME
           25  +cg_anno.tcl cachegrind.out.sql-$NAME >cout-kvtest-sql-$NAME.txt
    26     26   
    27     27   # Second run using the sqlite3_blob object
    28         -rm cachegrind.out.[1-9][0-9]*
    29     28   valgrind --tool=cachegrind ./kvtest run kvtest.db $KVARGS --blob-api 2>&1 | tee -a summary-kvtest-$NAME.txt
    30     29   mv cachegrind.out.[1-9][0-9]* cachegrind.out.$NAME
    31     30   cg_anno.tcl cachegrind.out.$NAME >cout-kvtest-$NAME.txt
    32     31   
    33     32   # Diff the sqlite3_blob API analysis for non-trunk runs.
    34     33   if test "$NAME" != "trunk"; then
    35     34     fossil test-diff --tk cout-kvtest-trunk.txt cout-kvtest-$NAME.txt &
    36     35   fi