[REBOL] Re: Gotcha!
From: atruter:labyrinth:au at: 19-Mar-2004 10:05
> It took a while to figure this out. I know I have seen this as a comment
> from someone in the docs somewhere sometime, but don't remember...
http://www.rebol.com/docs/core23/rebolcore-16.html#section-2.8
I can't recall whether I mentioned this at the time, but I have discovered
that "formating" and 'poking a block is significantly faster than the
typical insert loop.
i: 10000000
a: make block! i
repeat c i [insert tail a c]
b: make block! i
insert/dup b none i
repeat c i [poke b c c]
On my PC the times are 5.64s and 3.67s respectively.
Regards,
Ashley