Sean McIlroy <
namenob...@gmail.com> wrote:
> how much more efficient is it to use (one-dimensional) arrays instead
> of (long) lists?
That depends very much on how you use the list. If it's a lazy list
that represents e.g. an ongoing computation, an array is less efficient.
If it's a strict list that can be, for example, processed in chunks,
it's more efficient (less memory, better cache usage).
Data.ByteString is an example for the latter case.
> could it conceiveably make the difference between a script that
> overflows the stack and one that doesn't?
Unlikely. If that is your actual question, why don't you post some
(condensed) code that exhibits that problem?
- Dirk