[REBOL] Re: Fun with literal blocks!
From: lmecir:geocities at: 27-Oct-2000 15:11
Hi Joel,
> > > This can be a handy tool to *GREATLY* improve performance in some
> > > cases.
> >
> > Not at all, see below!
> >
>
> Certainly agreed! It only helps performance when:
>
> 1) the recursion causes the same argument to be revisited many
> times in a single "top-level" use of the function, gaining
> performance improvement at each call, or
>
> 2) the function is simply (unavoidably) quite expensive to compute,
> so that caching can provide performance improvement on subsequent
> calls with the same (or smaller) argument(s).
>
> I probably should have been more explicit about that!
>
The one that wasn't explicit enough was me, this time. I wanted to say, that
Memoizing *can* help to improve the performance, but that the usage of
literal blocks and creating non-WYSIWYG code *cannot*!
Regards
Ladislav