/ Check-in [9b42c3da]
Login

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

Overview
Comment:Updates to comments. No code changes.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 9b42c3da6b2593a10b8fe4b2fcc3d650132625c1
User & Date: drh 2014-09-19 16:02:06
Context
2014-09-19
16:13
Small size reduction and performance increase for releaseMemArray(). check-in: 24cd32d6 user: drh tags: trunk
16:02
Updates to comments. No code changes. check-in: 9b42c3da user: drh tags: trunk
15:28
The OP_Column opcode runs faster and is smaller by manually in-lining the code that persists string values in the output register. check-in: 36b613cc user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/vdbeaux.c.

     6      6   **
     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** This file contains code used for creating, destroying, and populating
    13         -** a VDBE (or an "sqlite3_stmt" as it is known to the outside world.)  Prior
    14         -** to version 2.8.7, all this code was combined into the vdbe.c source file.
    15         -** But that file was getting too big so this subroutines were split out.
           13  +** a VDBE (or an "sqlite3_stmt" as it is known to the outside world.) 
    16     14   */
    17     15   #include "sqliteInt.h"
    18     16   #include "vdbeInt.h"
    19     17   
    20     18   /*
    21     19   ** Create a new virtual database engine.
    22     20   */
................................................................................
  1602   1600     }
  1603   1601   #endif
  1604   1602   }
  1605   1603   
  1606   1604   /*
  1607   1605   ** Prepare a virtual machine for execution for the first time after
  1608   1606   ** creating the virtual machine.  This involves things such
  1609         -** as allocating stack space and initializing the program counter.
         1607  +** as allocating registers and initializing the program counter.
  1610   1608   ** After the VDBE has be prepped, it can be executed by one or more
  1611   1609   ** calls to sqlite3VdbeExec().  
  1612   1610   **
  1613   1611   ** This function may be called exactly once on each virtual machine.
  1614   1612   ** After this routine is called the VM has been "packaged" and is ready
  1615   1613   ** to run.  After this routine is called, further calls to 
  1616   1614   ** sqlite3VdbeAddOp() functions are prohibited.  This routine disconnects
................................................................................
  1814   1812   
  1815   1813     /* Delete any auxdata allocations made by the VM */
  1816   1814     sqlite3VdbeDeleteAuxData(p, -1, 0);
  1817   1815     assert( p->pAuxData==0 );
  1818   1816   }
  1819   1817   
  1820   1818   /*
  1821         -** Clean up the VM after execution.
  1822         -**
  1823         -** This routine will automatically close any cursors, lists, and/or
  1824         -** sorters that were left open.  It also deletes the values of
  1825         -** variables in the aVar[] array.
         1819  +** Clean up the VM after a single run.
  1826   1820   */
  1827   1821   static void Cleanup(Vdbe *p){
  1828   1822     sqlite3 *db = p->db;
  1829   1823   
  1830   1824   #ifdef SQLITE_DEBUG
  1831   1825     /* Execute assert() statements to ensure that the Vdbe.apCsr[] and 
  1832   1826     ** Vdbe.aMem[] arrays have already been cleaned up.  */