[REBOL] Re: parse vs. load/markup (a bit long)
From: rotenca:telvia:it at: 25-Jan-2002 1:59
> I ran a few tests with hash! instead of block!, with 'select instead of
'switch, with nested 'either blocks, but it all turned >out as bad or worse
than the initial experiment. I manipulate the block too much for a hash! to be
effective, and I might >have misunderstood your 'select example, but anyway,
it's very logical that the fastes way to do it is with the original
>'html-code parse rule, since two different operations (load/markup & content
manipulation) is there united into one.
I think of hash like an alternative to block for select ot switch with many
cases (>50 ?). Your is of les off 15 and the dfference between hash and block
is too low to change the result.
The idea is change:
switch x [a  b ..]
k: to hash [a  b ..] ;make it only one time
do select k x
I had no hope on your markup example, i made the opposite in my script:
started with markup and end with string because more fast and more easy to
control, because checked inside a parse rule block.