Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] XOM and Large Files

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: John Cowan <cowan AT ccil.org>
  • To: Tatu Saloranta <cowtowncoder AT yahoo.com>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] XOM and Large Files
  • Date: Wed, 26 Jul 2006 15:16:39 -0400

Tatu Saloranta scripsit:

> Reason is that most (all?) parsers I
> know of buffer their input, so adding
> BufferedInputStream just adds one unnecessary memory
> copy operation to the chain.

Well, apparently not. Whichever parser Mike is using obviously is not
buffering the InputStream.

TagSoup attempts to be smart about this: it examines the InputStream
to see if it is an instanceof BufferedInputStream, and only if it isn't
does TagSoup bother wrapping it. The same is done with a Reader.

--
A: "Spiro conjectures Ex-Lax." John Cowan
Q: "What does Pat Nixon frost her cakes with?" cowan AT ccil.org
--"Jeopardy" for generative semanticists http://www.ccil.org/~cowan




Archive powered by MHonArc 2.6.24.

Top of Page