/ Check-in [d4ccf0f5]
Login

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

Overview
Comment:Make sure the OP_Next and OP_NextIfOpen opcodes are numbered close together for efficiency in switch() statements. OP_Prev and OP_PrevIfOpen too.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:d4ccf0f5c656c8f0e1c32d5f7971b131f42c3cbd
User & Date: drh 2013-11-21 17:24:18
Context
2013-11-21
19:05
Remove a test from sqlite3VdbeMemFromBtree() which was unnecessary, and after the recent OP_Column refactoring, unreachable. check-in: 23667f3b user: drh tags: trunk
17:24
Make sure the OP_Next and OP_NextIfOpen opcodes are numbered close together for efficiency in switch() statements. OP_Prev and OP_PrevIfOpen too. check-in: d4ccf0f5 user: drh tags: trunk
16:08
When one or more arguments to a function are constants, try to factor out just those arguments into initialization code. check-in: 50d350ab user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to mkopcodeh.awk.

   132    132        || name=="OP_Savepoint"     \
   133    133        || name=="OP_Checkpoint"    \
   134    134        || name=="OP_Vacuum"        \
   135    135        || name=="OP_JournalMode"   \
   136    136        || name=="OP_VUpdate"       \
   137    137        || name=="OP_VFilter"       \
   138    138        || name=="OP_Next"          \
          139  +     || name=="OP_NextIfOpen"    \
   139    140        || name=="OP_SorterNext"    \
   140    141        || name=="OP_Prev"          \
          142  +     || name=="OP_PrevIfOpen"    \
   141    143       ){
   142    144         cnt++
   143    145         while( used[cnt] ) cnt++
   144    146         op[name] = cnt
   145    147         used[cnt] = 1
   146    148         def[cnt] = name
   147    149       }