Change Similarity to use SmallFloat for norm encoding

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@349073 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2005-11-26 04:14:35 +00:00
parent 729175f73a
commit 208760307f
2 changed files with 6 additions and 1 deletions

View File

@ -356,6 +356,11 @@ Optimizations
and sorting the first time on a field. and sorting the first time on a field.
(Yonik Seeley, LUCENE-454) (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 Infrastructure
1. Lucene's source code repository has converted from CVS to 1. Lucene's source code repository has converted from CVS to

View File

@ -21,7 +21,7 @@ package org.apache.lucene.util;
* @author yonik * @author yonik
* @version $Id$ * @version $Id$
*/ */
class SmallFloat { public class SmallFloat {
/** Converts a 32 bit float to an 8 bit float. /** Converts a 32 bit float to an 8 bit float.
* <br>Values less than zero are all mapped to zero. * <br>Values less than zero are all mapped to zero.