Is "repeat until not" better, worse or the same as "repeat while"
dbpage
Posts: 217
Consider the following statement:
Does the above statement require more, less or the same execution time and memory than the following statement?
repeat until not lockset(namelock)
Does the above statement require more, less or the same execution time and memory than the following statement?
repeat while lockset(namelock)

Comments
-Phil
Here is the output a bit simplified:
repeat until not lockset(namelock) Addr : 0018: 36 : Constant 2 $00000001 Addr : 0019: 2A : LockSet(Id) Push Addr : 001A: FF : Math Op NOT Addr : 001B: 0B 02 : jnz 001F +2 Addr : 001D: 04 79 : Jmp 0018 -7 repeat while lockset(namelock) Addr : 001F: 36 : Constant 2 $00000001 Addr : 0020: 2A : LockSet(Id) Push Addr : 0021: 0A 02 : jz 0025 +2 Addr : 0023: 04 7A : Jmp 001F -6I would say that the WHILE version is faster because UNTIL NOT needs one bycode more. The other bytecodes are similar.Andy