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

[REBOL] Re: newlines

From: joel:neely:fedex at: 8-Nov-2001 1:02

Ladislav Mecir wrote:
> Hi Joel, > > I will try to add my 0,02 CZK. >
~LOL! Pardon my ignorance, but can you expand the acronym?
> a) there is another disadvantage to the COPY algorithm you > didn't mention. It is not an in-place algorithm and that > is why it needs more memory. >
Thanks for pointing that out. I usually work on big-memory boxen and don't think of that often enough. Yet another classic time-vs-space tradeoff!
> b) Some algorithms are complicated, that is why a different > approach (not using REPLACE) should be considered too: > > while [s: find s #"."] [ > parse next s [any #"." t:] > s: either (index? s) + 2 < (index? t) [ > remove/part skip s 2 t > ] [t] > ] >
Thanks! I'll add this to the benchmark, along with Brett's latest versions, and report results when done. -jn- -- We say "gestalt" when things combine to act in ways we can't explain. -- Marvin Minsky joel/dot/neely/at/fedex/FIX/PUNCTUATION/dot/com