Change APPEND opcode to directly modify a variable.
Avoids a big O(n^2) loop in constructing arrays. Fixes #61.
This commit is contained in:
1 parent
fb84541e11
commit
c013b557a2
3 files changed
+8
-9
No files matched your search
+1
-1
@@ -12,7 +12,7 @@ OP(FORK, BRANCH, 0, 0)
|
||||
OP(JUMP, BRANCH, 0, 0)
|
||||
OP(JUMP_F,BRANCH, 1, 0)
|
||||
OP(BACKTRACK, NONE, 0, 0)
|
||||
OP(APPEND, NONE, 2, 1)
|
||||
OP(APPEND, VARIABLE,1, 0)
|
||||
OP(INSERT, NONE, 4, 2)
|
||||
|
||||
OP(GETPATH, NONE, 2, 1)
|
||||
|
||||
Reference in new issue
Block a user