lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From busc...@apache.org
Subject svn commit: r594411 - /lucene/java/trunk/src/java/org/apache/lucene/index/SegmentTermPositions.java
Date Tue, 13 Nov 2007 03:33:37 GMT
Author: buschmi
Date: Mon Nov 12 19:33:36 2007
New Revision: 594411

URL: http://svn.apache.org/viewvc?rev=594411&view=rev
Log:
Remove redundant else-clause from SegmentTermPositions#readDeltaPosition(). This might be
a small performance gain.

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/index/SegmentTermPositions.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/SegmentTermPositions.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/SegmentTermPositions.java?rev=594411&r1=594410&r2=594411&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/SegmentTermPositions.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/SegmentTermPositions.java Mon Nov 12
19:33:36 2007
@@ -78,9 +78,6 @@
       } 
       delta >>>= 1;
       needToLoadPayload = true;
-    } else {
-      payloadLength = 0;
-      needToLoadPayload = false;
     }
     return delta;
   }



Mime
View raw message