1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

About a 2.5% speed improvement by reducing the number of sqlite3ThreadData

calls in the parser. (CVS 2924)

FossilOrigin-Name: 0caa1994770142d6ca15284a26bad3879b07b15a
This commit is contained in:
drh
2006-01-12 12:43:36 +00:00
parent f06c59a3e5
commit 4b494d65a7
6 changed files with 24 additions and 18 deletions

View File

@@ -102,7 +102,7 @@ int sqlite3VdbeAddOp(Vdbe *p, int op, int p1, int p2){
p->nOp++;
assert( p->magic==VDBE_MAGIC_INIT );
resizeOpArray(p, i+1);
if( sqlite3ThreadDataReadOnly()->mallocFailed ){
if( p->aOp==0 || p->nOp<=i ){
return 0;
}
pOp = &p->aOp[i];