mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Performance improvement on the OP_Variable opcode.
FossilOrigin-Name: 1dc7993bb6957587a6c63142e97b8e4137c3d81bbfd724f86048e0894bcb429b
This commit is contained in:
@@ -1236,8 +1236,10 @@ case OP_Variable: { /* out2 */
|
||||
goto too_big;
|
||||
}
|
||||
pOut = &aMem[pOp->p2];
|
||||
sqlite3VdbeMemShallowCopy(pOut, pVar, MEM_Static);
|
||||
pOut->flags |= MEM_FromBind;
|
||||
if( VdbeMemDynamic(pOut) ) sqlite3VdbeMemSetNull(pOut);
|
||||
memcpy(pOut, pVar, MEMCELLSIZE);
|
||||
pOut->flags &= ~(MEM_Dyn|MEM_Ephem);
|
||||
pOut->flags |= MEM_Static|MEM_FromBind;
|
||||
UPDATE_MAX_BLOBSIZE(pOut);
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user