Re: Delaying buffer allocation in BufferedIndexInput

2005-09-12 Thread Doug Cutting
Paul Elschot wrote: I tried delaying the buffer allocation in BufferedIndexInput by using this clone() method: public Object clone() { BufferedIndexInput clone = (BufferedIndexInput)super.clone(); clone.buffer = null; clone.bufferLength = 0; clone.bufferPosition = 0; clone.

Delaying buffer allocation in BufferedIndexInput

2005-09-10 Thread Paul Elschot
On Friday 09 September 2005 00:34, Doug Cutting wrote: > Paul Elschot wrote: > > I suppose one of these cases are when many terms are used in a query. > > Would it be easily possible to make the buffer size for a term iterator > > depend on the numbers of documents to be iterated? > > Many terms o