>>... to change semantics of these iterators not to return boolen but
> > rather document Id with sentinel values. This would definitely reduce
> > number of method invocations by factor 2 at least.--- {next() doc()}
> > -> next()
> >
> > It would be pretty easy to do that, just requires on one h
From: Paul Elschot <[EMAIL PROTECTED]>
> > To: java-dev@lucene.apache.org
> > Sent: Sunday, 27 July, 2008 1:04:26 AM
> > Subject: Re: ScorerDocQueue.HeapedScorerDoc
> >
> > Op Saturday 26 July 2008 23:09:06 schreef eks dev:
> > > what is the reason to hav
ike.
I think MG4J people made this switch in last version as well.
- Original Message
> From: Paul Elschot <[EMAIL PROTECTED]>
> To: java-dev@lucene.apache.org
> Sent: Sunday, 27 July, 2008 1:04:26 AM
> Subject: Re: ScorerDocQueue.HeapedScorerDoc
>
> Op Satur
Op Saturday 26 July 2008 23:09:06 schreef eks dev:
> what is the reason to have HeapedScorerDoc class in ScorerDocQueue?
> Caching of the doc value?
Yes. The underlying priority queue does log2(n) comparisons on them on
some occasions.
> Does this bring anything compared to
> invoking doc() on S