[
Lists Home |
Date Index |
Thread Index
]
What about memory mapped files? If you can treat the file as an array,
it's just as easy to move backwards through the array as forwards.
For network applications you might have to have three threads: one to
fill a buffer without parsing, one to parse from the start of the
buffer, one to parse from the back once the buffer is fully loaded.
Presumably the fill thread could outrun the other two.
--
Elliotte Rusty Harold elharo@metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim
|