|
|
Warp wrote:
> Orchid XP v7 <voi### [at] devnull> wrote:
>> Simply let lazy evaluation read the file as required, and the GC can
>> delete the data you've already processed transparently behind you.
>
> That's not possible if the file is indeed read into one single string.
My guess is that internally it works the same way you'd do it from C:
you read a buffer, walk thru the buffer, and then discard the buffer.
There's no reason it can't work that way, just because it *looks* like a
list of characters at the program level, any more than getchar() really
reads one character at a time.
--
Darren New / San Diego, CA, USA (PST)
Remember the good old days, when we
used to complain about cryptography
being export-restricted?
Post a reply to this message
|
|