lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marvin Humphrey <mar...@rectangular.com>
Subject Why ORScorer delayed init?
Date Tue, 10 Apr 2007 17:50:30 GMT
Greets,

In DisjunctionSumScorer, both skipTo() and next() invoke  
initScorerDocQueue() on the first iteration.  However, since all  
subscorers are added en masse via the constructor instead of  
individually via an add() method which does not exist for this class,  
it would be possible to trigger initScorerDocQueue() at construction  
time rather than defer it, slightly simplifying the inner loop methods.

Does the delay offer some advantage that I'm missing?  It looks like  
an artifact.

Marvin Humphrey
Rectangular Research
http://www.rectangular.com/



---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message