arturo icon indicating copy to clipboard operation
arturo copied to clipboard

Iterator functions for ranges perform far worse than a simple `while`

Open drkameleon opened this issue 1 year ago • 1 comments

Describe the bug

Compare:

i: 0
while [i < someBigNumber][
     ; do sth with i
     inc 'i
]

with:

loop someBigNumber 'i [
    ; do sth with i
]

or:

loop 1..someBigNumber 'i [
    ; do sth with i
]

(I thought this was "solved" but, apparently, it's not?)

drkameleon avatar Dec 05 '23 07:12 drkameleon