lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r349073 - in /lucene/java/trunk: CHANGES.txt src/java/org/apache/lucene/util/SmallFloat.java
Date Sat, 26 Nov 2005 04:14:42 GMT
Author: yonik
Date: Fri Nov 25 20:14:35 2005
New Revision: 349073

URL: http://svn.apache.org/viewcvs?rev=349073&view=rev
Log:
Change Similarity to use SmallFloat for norm encoding

Modified:
    lucene/java/trunk/CHANGES.txt
    lucene/java/trunk/src/java/org/apache/lucene/util/SmallFloat.java

Modified: lucene/java/trunk/CHANGES.txt
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/CHANGES.txt?rev=349073&r1=349072&r2=349073&view=diff
==============================================================================
--- lucene/java/trunk/CHANGES.txt (original)
+++ lucene/java/trunk/CHANGES.txt Fri Nov 25 20:14:35 2005
@@ -356,6 +356,11 @@
     and sorting the first time on a field.
     (Yonik Seeley, LUCENE-454)
 
+11. Optimized and generalized 32 bit floating point to byte
+    (custom 8 bit floating point) conversions.  Increased the speed of
+    Similarity.encodeNorm() anywhere from 10% to 250%, depending on the JVM.
+    (Yonik Seeley, LUCENE-467)
+
 Infrastructure
 
  1. Lucene's source code repository has converted from CVS to

Modified: lucene/java/trunk/src/java/org/apache/lucene/util/SmallFloat.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/src/java/org/apache/lucene/util/SmallFloat.java?rev=349073&r1=349072&r2=349073&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/util/SmallFloat.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/util/SmallFloat.java Fri Nov 25 20:14:35
2005
@@ -21,7 +21,7 @@
  * @author yonik
  * @version $Id$
  */
-class SmallFloat {
+public class SmallFloat {
 
   /** Converts a 32 bit float to an 8 bit float.
    * <br>Values less than zero are all mapped to zero.



Mime
View raw message