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

[REBOL] Re: newlines

From: nitsch-lists:netcologne at: 13-Nov-2001 20:31

RE: [REBOL] Re: newlines Hi Ladislav, yes, i know, i forgot some lines.. a bit dicussion: - i was surprised to have the fastest algorithm. i tried to be simple, and to reduce the lots of large movements of remove-solutions. - i think the handling is in response of the user. 'copy yourself if needed is rebol-style.. because often there is something parsed and completely handled, before the function is called again. used that way there is no need to copy the result. if there is need, [copy INS1 text] is short. OTOH similar one could claim the remove-solutions destroy the string, so they should copy first? ;-) - instead of post-allocation like [copy out], i could do [insert clear s out] without allocations. which may trigger some gc when lots of benchmark-loops. could you benchmark this two solutions too please? -Volker - [lmecir--mbox--vol--cz] wrote: