[REBOL] Re: Shamless request for improving function speed.
From: al:bri:xtra at: 29-Mar-2002 8:45
> I still can't get rid of one 'append though ...
> s: j: i: 0
> state: make block! 256
> loop 256 [append state s s: s + 1]
State: make block! 256
loop length? State [
insert state S
S: S + 1
I think that might be faster.
A better alternative is to pregenerate this block, save to a file and then
load it as needed. For example:
0 1 2 3 4 ; and so on.
save %State.r State
State: load %State.r
ICQ: 26227169 http://valley.150m.com/