You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by yo...@apache.org on 2005/11/26 05:14:42 UTC
svn commit: r349073 - in /lucene/java/trunk: CHANGES.txt
src/java/org/apache/lucene/util/SmallFloat.java
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.