diff options
author | drh <> | 2022-04-04 01:12:11 +0000 |
---|---|---|
committer | drh <> | 2022-04-04 01:12:11 +0000 |
commit | 1c8486301f53137c73b19b83f1cb0def51f198ab (patch) | |
tree | 23939f1893ca65757a0a66282490fe6927ce497f /src/status.c | |
parent | 8703edd3e9c10a687e1bf9f95901bca24c3a6881 (diff) | |
download | sqlite-1c8486301f53137c73b19b83f1cb0def51f198ab.tar.gz sqlite-1c8486301f53137c73b19b83f1cb0def51f198ab.zip |
Only invoke sqlite3VdbeClearObject() from a single location, so that the
compiler is more likely to in-line the code. Performance increase and
size reduction.
FossilOrigin-Name: c6947a96e61f71aa61ca3d70d9e2612d784ab04d60fa88852b03cfce86b1bf2b
Diffstat (limited to 'src/status.c')
-rw-r--r-- | src/status.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/status.c b/src/status.c index f0e307c2d..e7f215844 100644 --- a/src/status.c +++ b/src/status.c @@ -334,8 +334,7 @@ int sqlite3_db_status( db->pnBytesFreed = &nByte; for(pVdbe=db->pVdbe; pVdbe; pVdbe=pVdbe->pNext){ - sqlite3VdbeClearObject(db, pVdbe); - sqlite3DbFree(db, pVdbe); + sqlite3VdbeDelete(pVdbe); } db->pnBytesFreed = 0; |