Sean Russell <ser / efn.org> writes:

> Jim Menard wrote:
> 
> > NQXML reads the file into a string and parses the string. I fooled around
> > with using a stream (an IO) once, but there was too much mess remembering
> > where I was in the stream, going back, needing to re-read the IO stream,
> > etc. that I decided it wasn't worth the bother.
> > 
> > Maybe it is.
> 
> Jim,
> 
> Grab REXML and check out source.rb.  You might be able to use it, 
> especially IOSource.  IOSource reads in 100 bytes at a time and checks it 
> to see if it's "enough"; if it isn't, it reads in 100 bytes more.  I've 
> optimized it as much as I can.  It probably isn't as fast as slurping the 
> whole file, but it is easier on the memory.
> 
> Anyway, if you can use it, do.

Thank you, I will definitely look at it.

I'm being slowed down by a job search, so NQXML changes have been slowed
down as well.

Jim
-- 
Jim Menard, jimm / io.com, http://www.io.com/~jimm/
"An object at rest cannot be stopped!"
    -- The Evil Midnight Bomber What Bombs At Midnight