2007/7/13, Maxim Olivier-Adlhoch <[EMAIL PROTECTED]>:

> 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).

HTH,
    Gabriele.
-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to