/ Check-in [7b2623f1]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

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

Overview
Comment:Small performance increase in sqlite3SrcListAppend().
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 7b2623f1994384484cf31ae9e443ee20f19b278bf2e91898dbc01828822ddf91
User & Date: drh 2017-07-06 01:02:09
Context
2017-07-06
01:28
Slightly more compact implementation of the byte-code generator for the COMMIT and ROLLBACK commands. check-in: 4da663d9 user: drh tags: trunk
01:02
Small performance increase in sqlite3SrcListAppend(). check-in: 7b2623f1 user: drh tags: trunk
2017-07-05
23:33
Make the hash table implementation a little smaller and faster. check-in: f762f1ef user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/build.c.

  3768   3768       return 0;
  3769   3769     }
  3770   3770     pItem = &pList->a[pList->nSrc-1];
  3771   3771     if( pDatabase && pDatabase->z==0 ){
  3772   3772       pDatabase = 0;
  3773   3773     }
  3774   3774     if( pDatabase ){
  3775         -    Token *pTemp = pDatabase;
  3776         -    pDatabase = pTable;
  3777         -    pTable = pTemp;
         3775  +    pItem->zName = sqlite3NameFromToken(db, pDatabase);
         3776  +    pItem->zDatabase = sqlite3NameFromToken(db, pTable);
         3777  +  }else{
         3778  +    pItem->zName = sqlite3NameFromToken(db, pTable);
         3779  +    pItem->zDatabase = 0;
  3778   3780     }
  3779         -  pItem->zName = sqlite3NameFromToken(db, pTable);
  3780         -  pItem->zDatabase = sqlite3NameFromToken(db, pDatabase);
  3781   3781     return pList;
  3782   3782   }
  3783   3783   
  3784   3784   /*
  3785   3785   ** Assign VdbeCursor index numbers to all tables in a SrcList
  3786   3786   */
  3787   3787   void sqlite3SrcListAssignCursors(Parse *pParse, SrcList *pList){