/ Check-in [04716c90]
Login

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

Overview
Comment:Performance optimization for sqlite3VdbeAddOp4().
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 04716c907bf9fc9b827e18fdc7b4e1069e201536
User & Date: drh 2016-12-07 20:09:51
Context
2016-12-07
20:22
The use P4_DYNAMIC in place of the P4_MPRINTF operand type. check-in: 3954f837 user: drh tags: trunk
20:09
Performance optimization for sqlite3VdbeAddOp4(). check-in: 04716c90 user: drh tags: trunk
17:06
Put the SQLITE_UNTESTABLE compile-time option in the correct order for PRAGMA compile_options. check-in: 24574a15 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/vdbeaux.c.

   309    309     int op,             /* The new opcode */
   310    310     int p1,             /* The P1 operand */
   311    311     int p2,             /* The P2 operand */
   312    312     int p3,             /* The P3 operand */
   313    313     int p4              /* The P4 operand as an integer */
   314    314   ){
   315    315     int addr = sqlite3VdbeAddOp3(p, op, p1, p2, p3);
   316         -  sqlite3VdbeChangeP4(p, addr, SQLITE_INT_TO_PTR(p4), P4_INT32);
          316  +  if( p->db->mallocFailed==0 ){
          317  +    VdbeOp *pOp = &p->aOp[addr];
          318  +    pOp->p4type = P4_INT32;
          319  +    pOp->p4.i = p4;
          320  +  }
   317    321     return addr;
   318    322   }
   319    323   
   320    324   /* Insert the end of a co-routine
   321    325   */
   322    326   void sqlite3VdbeEndCoroutine(Vdbe *v, int regYield){
   323    327     sqlite3VdbeAddOp1(v, OP_EndCoroutine, regYield);