Re: [xml-dev] Exploiting multi-core CPUs during XML parsing

From
Elliotte Harold <>
To
"Andrew S. Townley" <>
Date
2006-04-01T09:28:34Z
ID
<>
Thread
Re: [xml-dev] Exploiting multi-core CPUs during XML parsing
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  
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