[REBOL] Re: How to compose a string with a specific separator
From: santilli:gabriele:gma:il at: 13-Jul-2007 18:27
2007/7/13, Maxim Olivier-Adlhoch <moliad-gmail.com>:
> The most optimal solution is often to convert the series to a list (cause it
> has a very low hit on repeated inserts) and then convert back... on long
> series, this has often improved my benchmarks by a few order of magnitudes.
Actually, that means copying twice, which is much slower than
Ladislav's way. Of course, for large blocks you have to preallocate
the destination block. Eg. instead of using (result: copy ) as in
Ladislav's code you'd use (result: make block! 2 * length? a).