aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordrh <>2025-01-28 12:50:17 +0000
committerdrh <>2025-01-28 12:50:17 +0000
commit8b62a82ae36f7d39c2a301389219e456759f9919 (patch)
tree113328eba810318c15d45f5f674c7819a718be72 /src/expr.c
parentb0c8b08874b90bf3eaf05e3b87d0ad1cb05d46ee (diff)
downloadsqlite-8b62a82ae36f7d39c2a301389219e456759f9919.tar.gz
sqlite-8b62a82ae36f7d39c2a301389219e456759f9919.zip
Simplifh the IdList object to remove unnecessary fields. Performance
increases by about 0.8%. FossilOrigin-Name: a4625bb995dd5582d1f3cf0c2e54eb3f01f1cc1405811dda86ebd38b2b858994
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/expr.c b/src/expr.c
index ca5b9092e..fcd3da213 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -1932,16 +1932,13 @@ IdList *sqlite3IdListDup(sqlite3 *db, const IdList *p){
int i;
assert( db!=0 );
if( p==0 ) return 0;
- assert( p->eU4!=EU4_EXPR );
pNew = sqlite3DbMallocRawNN(db, sizeof(*pNew)+(p->nId-1)*sizeof(p->a[0]) );
if( pNew==0 ) return 0;
pNew->nId = p->nId;
- pNew->eU4 = p->eU4;
for(i=0; i<p->nId; i++){
struct IdList_item *pNewItem = &pNew->a[i];
const struct IdList_item *pOldItem = &p->a[i];
pNewItem->zName = sqlite3DbStrDup(db, pOldItem->zName);
- pNewItem->u4 = pOldItem->u4;
}
return pNew;
}