I have attached patch to LUCENE-1145 just in case. As far as my testing was correct, it is a bit faster, well, at least not slower.
----- Original Message ---- From: Yonik Seeley <[EMAIL PROTECTED]> To: java-dev@lucene.apache.org Sent: Wednesday, 23 January, 2008 2:59:52 PM Subject: Re: Another DisjunctionSumScorer micro-tweak / simplification? On Jan 23, 2008 8:50 AM, eks dev <[EMAIL PROTECTED]> wrote: > this value gets practically maintained on two places, any reason for that? I would suggest to use scorerDocQueue.size() uniformly as this method gets definitely inlined. You're probably right... in the presence of proper inlining, using scorerDocQueue.size() could actually be slightly faster. These things often need to be verified of course. -Yonik --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___________________________________________________________ Support the World Aids Awareness campaign this month with Yahoo! For Good http://uk.promotions.yahoo.com/forgood/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]