[REBOL] Re: Overhead for insert and blocks
From: g:santilli:tiscalinet:it at: 31-Oct-2000 12:28
Chris wrote:
> But that doesn't actually answer my question. I'm not talking
> about the representation the user sees, but how the data is
> actually held in memory. Is it a simple memory block, single
[...]
A block like:
[
[ "one" "two" "three" ]
[ "four" "five" "six" ]
]
is in memory something like:
[ * * ]
| |
V V
[ * * * ] [ * * * ]
| | | | | |
V V V V V V
"one" "two" "three" "four" "five" "six"
Inserting at the head means shifting all the pointers, but not all
the data.
HTH,
Gabriele.
--
Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer
Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/