Hmmm, what about just implementing mmap-as-string?
Then, assuming the parsing process is somewhat stream-like, the OS will take
care of swapping in chunks as you need them. You don't even need anything
special to support backtracking -- it's just a memory address, after all.
-Martin
On Thu, 14
Yes, that looks like an even better option. I see that this is implemented in
p5 as File::Map, which is a nice portable option.
Chris
> On Aug 16, 2014, at 7:51 AM, "Martin D Kealey"
> wrote:
>
>
> Hmmm, what about just implementing mmap-as-string?
>
> Then, assuming the parsing process is