Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: parse vs. load/markup (a bit long)

From: rotenca:telvia:it at: 25-Jan-2002 1:59

Hi Hallvard,
> 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 []..] with k: to hash [a [] b []..] ;make it only one time and then 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. --- Ciao Romano