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: Elliotte Harold <elharo AT metalab.unc.edu>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] XOM and Large Files
  • Date: Wed, 26 Jul 2006 15:58:40 -0400

Elliotte Harold scripsit:

> I've considered doing something like that in XOM. The problem is you can
> be passed something that isn't a BufferedInputStream but is chained to
> one. For instance, a GZipInputStream chained to a BufferedInputStream
> chained to a FileInputStream. Then you end up with double buffering for
> no good reason.

"The best is the enemy of the good."

TagSoup tries to optimize two common cases: passing an unbuffered
InputStream, where the performance will increase drastically, and
passing a BufferedInputStream wrapped around an InputStream, where the
performance will get no worse. The fact that more complex cases are

--
I am expressing my opinion. When my John Cowan
honorable and gallant friend is called, cowan AT ccil.org
he will express his opinion. This is http://www.ccil.org/~cowan
the process which we call Debate. --Winston Churchill




Archive powered by MHonArc 2.6.24.

Top of Page